forked from 0ad/0ad
This was SVN commit r1791.
This commit is contained in:
parent
19fd48b1d5
commit
6fa79e0247
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user