This was SVN commit r1791.

This commit is contained in:
NoMonkey 2005-01-23 21:58:06 +00:00
parent 19fd48b1d5
commit 6fa79e0247

View File

@ -55,6 +55,10 @@ class CUnit;
class CEntity : public CJSObject<CEntity>
{
friend class CEntityManager;
private:
// The player that owns this entity
CPlayer* m_player;
public:
// Intrinsic properties
CBaseEntity* m_base;
@ -69,9 +73,6 @@ public:
bool m_selected;
i32 m_grouped;
// The player that owns this entity
CPlayer* m_player;
// If this unit has been removed from the gameworld but has still
// has references.
bool m_destroyed;
@ -149,6 +150,12 @@ public:
// Process tick.
void Tick();
// Store the player associated with this entity
void SetPlayer(CPlayer *pPlayer);
// Retrieve the player associated with this entitiy
CPlayer* GetPlayer() { return m_player; }
// Process damage
void Damage( CDamageType& damage, CEntity* inflictor = NULL );