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
argh, So there you have it. Unbelievable that you have a FRIEND class so you can bypass protected/private data. Well that makes a lot of use then for protected/private stuff.
still odd that the code compiles without any definition of the friend class in the hl2 sdk. But then again i did not read the entire page and could have missed something. I don't feel well today.
I will burn some files for you PMB, and i hope to post it tomorrow.