ScummVM API documentation
iGameEnemyState Class Referenceabstract
Inheritance diagram for iGameEnemyState:
iGameEnemyState_Dog_Base iGameEnemyState_Spider_Base iGameEnemyState_Worm_Base cGameEnemyState_Dog_Attack cGameEnemyState_Dog_Attention cGameEnemyState_Dog_BreakDoor cGameEnemyState_Dog_CallBackup cGameEnemyState_Dog_Dead cGameEnemyState_Dog_Eat cGameEnemyState_Dog_Flee cGameEnemyState_Dog_Hunt cGameEnemyState_Dog_Idle cGameEnemyState_Dog_Investigate cGameEnemyState_Dog_KnockDown cGameEnemyState_Dog_MoveTo cGameEnemyState_Dog_Patrol cGameEnemyState_Spider_Attack cGameEnemyState_Spider_Dead cGameEnemyState_Spider_Flee cGameEnemyState_Spider_Hunt cGameEnemyState_Spider_Idle cGameEnemyState_Spider_KnockDown cGameEnemyState_Worm_Dead cGameEnemyState_Worm_Hunt cGameEnemyState_Worm_Idle

Public Member Functions

 iGameEnemyState (int alId, cInit *apInit, iGameEnemy *apEnemy)
 
virtual void OnEnterState (iGameEnemyState *apPrevState)=0
 
virtual void OnLeaveState (iGameEnemyState *apNextState)=0
 
virtual void OnUpdate (float afTimeStep)=0
 
virtual void OnDraw ()=0
 
virtual void OnPostSceneDraw ()=0
 
virtual void OnSeePlayer (const cVector3f &avPosition, float afChance)=0
 
virtual bool OnHearNoise (const cVector3f &avPosition, float afVolume)=0
 
virtual void OnTakeHit (float afDamage)=0
 
virtual void OnDeath (float afDamage)=0
 
virtual void OnAnimationOver (const tString &asAnimName)=0
 
virtual void OnFlashlight (const cVector3f &avPosition)=0
 
void SetPreviousState (int alX)
 
int GetPreviousState ()
 
int GetId ()
 

Protected Attributes

int mlId
 
cInitmpInit
 
cPlayermpPlayer
 
iGameEnemympEnemy
 
cCharacterMovempMover
 
int mlPreviousState
 

The documentation for this class was generated from the following file: