DDraceNetwork Docs
CFriends Class Reference

#include <friends.h>

Inheritance diagram for CFriends:
[legend]
Collaboration diagram for CFriends:
[legend]

Public Member Functions

 CFriends ()
 
void Init (bool Foes=false) override
 
int NumFriends () const override
 
const CFriendInfoGetFriend (int Index) const override
 
int GetFriendState (const char *pName, const char *pClan) const override
 
bool IsFriend (const char *pName, const char *pClan, bool PlayersOnly) const override
 
void AddFriend (const char *pName, const char *pClan) override
 
void RemoveFriend (const char *pName, const char *pClan) override
 
void RemoveFriend (int Index)
 
void Friends ()
 
virtual void Init (bool Foes=false)=0
 
virtual int NumFriends () const =0
 
virtual const CFriendInfoGetFriend (int Index) const =0
 
virtual int GetFriendState (const char *pName, const char *pClan) const =0
 
virtual bool IsFriend (const char *pName, const char *pClan, bool PlayersOnly) const =0
 
virtual void AddFriend (const char *pName, const char *pClan)=0
 
virtual void RemoveFriend (const char *pName, const char *pClan)=0
 
- Public Member Functions inherited from IInterface
 IInterface ()
 
virtual void Shutdown ()
 
virtual ~IInterface ()
 

Static Private Member Functions

static void ConAddFriend (IConsole::IResult *pResult, void *pUserData)
 
static void ConRemoveFriend (IConsole::IResult *pResult, void *pUserData)
 
static void ConFriends (IConsole::IResult *pResult, void *pUserData)
 
static void ConfigSaveCallback (IConfigManager *pConfigManager, void *pUserData)
 

Private Attributes

CFriendInfo m_aFriends [MAX_FRIENDS]
 
int m_Foes
 
int m_NumFriends
 

Additional Inherited Members

- Public Types inherited from IFriends
enum  { FRIEND_NO = 0 , FRIEND_CLAN , FRIEND_PLAYER , MAX_FRIENDS = 4096 }
 
- Static Public Member Functions inherited from IFriends
static const char * InterfaceName ()
 
- Protected Member Functions inherited from IInterface
IKernelKernel ()
 

Constructor & Destructor Documentation

◆ CFriends()

CFriends::CFriends ( )

Member Function Documentation

◆ AddFriend()

void CFriends::AddFriend ( const char *  pName,
const char *  pClan 
)
overridevirtual

Implements IFriends.

◆ ConAddFriend()

void CFriends::ConAddFriend ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConfigSaveCallback()

void CFriends::ConfigSaveCallback ( IConfigManager pConfigManager,
void *  pUserData 
)
staticprivate

◆ ConFriends()

void CFriends::ConFriends ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ ConRemoveFriend()

void CFriends::ConRemoveFriend ( IConsole::IResult pResult,
void *  pUserData 
)
staticprivate

◆ Friends()

void CFriends::Friends ( )

◆ GetFriend()

const CFriendInfo * CFriends::GetFriend ( int  Index) const
overridevirtual

Implements IFriends.

◆ GetFriendState()

int CFriends::GetFriendState ( const char *  pName,
const char *  pClan 
) const
overridevirtual

Implements IFriends.

◆ Init()

void CFriends::Init ( bool  Foes = false)
overridevirtual

Implements IFriends.

◆ IsFriend()

bool CFriends::IsFriend ( const char *  pName,
const char *  pClan,
bool  PlayersOnly 
) const
overridevirtual

Implements IFriends.

◆ NumFriends()

int CFriends::NumFriends ( ) const
inlineoverridevirtual

Implements IFriends.

◆ RemoveFriend() [1/2]

void CFriends::RemoveFriend ( const char *  pName,
const char *  pClan 
)
overridevirtual

Implements IFriends.

◆ RemoveFriend() [2/2]

void CFriends::RemoveFriend ( int  Index)

Member Data Documentation

◆ m_aFriends

CFriendInfo CFriends::m_aFriends[MAX_FRIENDS]
private

◆ m_Foes

int CFriends::m_Foes
private

◆ m_NumFriends

int CFriends::m_NumFriends
private

The documentation for this class was generated from the following files: