Thread: friend class?
View Single Post
friend class?
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default friend class? - 12-12-2004

Does anybody know what this line means? I found CBotManager somewhere, as a friend class in the player.h

what is a friend class? I do not see a definition of it somewhere?

Code:
class CBasePlayer : public CBaseCombatCharacter
{
public:
 DECLARE_CLASS( CBasePlayer, CBaseCombatCharacter );
protected:
 // HACK FOR BOTS
 friend class CBotManager;
 static edict_t *s_PlayerEdict; // must be set before calling constructor


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote