![]() |
Dauphine
0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
|
Parent class for other enemy states. More...
#include <StateEnemy.h>
Public Member Functions | |
| StateEnemy (Enemy *const enemy_) | |
| The constructor. More... | |
| virtual | ~StateEnemy () |
| The destructor. | |
| virtual void | enter ()=0 |
| Method called on load. More... | |
| virtual void | exit ()=0 |
| Method called on unload. More... | |
| virtual void | update ()=0 |
| Update method for the state. More... | |
Public Attributes | |
| Enemy * | enemy |
| Reference to the enemy. More... | |
Parent class for other enemy states.
| StateEnemy::StateEnemy | ( | Enemy *const | enemy_) |
The constructor.
| enemy_ | : Reference to the Enemy. |
|
pure virtual |
Method called on load.
Pure virtual function. Called on state enter.
Implemented in EStateAerial, EStateAlert, EStateCurious, EStateIdle, and EStatePatrolling.
|
pure virtual |
Method called on unload.
Pure virtual function. Called on state exit.
Implemented in EStateAerial, EStateAlert, EStateCurious, EStateIdle, and EStatePatrolling.
|
pure virtual |
Update method for the state.
While the Enemy is on the state, this method runs every update.
Implemented in EStateAerial, EStateAlert, EStateCurious, EStateIdle, and EStatePatrolling.
| Enemy* StateEnemy::enemy |
Reference to the enemy.
1.8.4