|
0 A.D. | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
CStance | +--CDefendStancein Stance.h
Defensive stance: The unit will attack enemies but will never pursue them further than its LOS away from its original position (the point where it last became idle).
| Field Summary | |
private CVector2D |
idlePos
|
| Fields inherited from class CStance |
m_Entity |
| Constructor Summary | |
CDefendStance( CEntity* ent )
|
|
virtual ~CDefendStance()
|
|
| Method Summary | |
virtual bool |
AllowsMovement()
|
virtual bool |
CheckMovement( CVector2D proposedPos )
|
virtual void |
OnDamaged( CEntity* source )
|
virtual void |
OnIdle()
|
| Methods inherited from class CStance |
OnIdle, OnDamaged, AllowsMovement, CheckMovement |
| Field Detail |
private CVector2D idlePos;
| Constructor Detail |
public CDefendStance( CEntity* ent );
public virtual ~CDefendStance();
| Method Detail |
public virtual bool AllowsMovement();
public virtual bool CheckMovement( CVector2D proposedPos );
public virtual void OnDamaged( CEntity* source );
public virtual void OnIdle();
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||