Dauphine  0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
Public Member Functions | Public Attributes | List of all members
StateEnemy Class Referenceabstract

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

Enemyenemy
 Reference to the enemy. More...
 

Detailed Description

Parent class for other enemy states.

Constructor & Destructor Documentation

StateEnemy::StateEnemy ( Enemy *const  enemy_)

The constructor.

Parameters
enemy_: Reference to the Enemy.

Member Function Documentation

virtual void StateEnemy::enter ( )
pure virtual

Method called on load.

Pure virtual function. Called on state enter.

Implemented in EStateAerial, EStateAlert, EStateCurious, EStateIdle, and EStatePatrolling.

virtual void StateEnemy::exit ( )
pure virtual

Method called on unload.

Pure virtual function. Called on state exit.

Implemented in EStateAerial, EStateAlert, EStateCurious, EStateIdle, and EStatePatrolling.

virtual void StateEnemy::update ( )
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.

Member Data Documentation

Enemy* StateEnemy::enemy

Reference to the enemy.


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