![]() |
Dauphine
0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
|
Parent class for other player states. More...
#include <StatePlayer.h>
Public Member Functions | |
| StatePlayer (Player *const player_) | |
| The constructor. More... | |
| virtual | ~StatePlayer () |
| The destructor. | |
| virtual void | enter ()=0 |
| Method called on load. More... | |
| virtual void | exit ()=0 |
| Method called on unload. More... | |
| virtual void | handleInput (const std::array< bool, GameKeys::MAX > keyStates_)=0 |
| Update method for the state. More... | |
Public Attributes | |
| Player * | player |
| Reference to the player. More... | |
Parent class for other player states.
| StatePlayer::StatePlayer | ( | Player *const | player_) |
The constructor.
| player_ | : Reference to the player. |
|
pure virtual |
Method called on load.
Pure virtual function. Called on state enter.
Implemented in PStateAerial, PStateAiming, PStateCrouching, PStateIdle, PStateMoving, and PStateRolling.
|
pure virtual |
Method called on unload.
Pure virtual function. Called on state exit.
Implemented in PStateAerial, PStateAiming, PStateCrouching, PStateIdle, PStateMoving, and PStateRolling.
|
pure virtual |
Update method for the state.
While the Player is on the state, this method runs every update.
| keyStates_ | : Boolean array that contains all input data. |
Implemented in PStateAerial, PStateAiming, PStateCrouching, PStateIdle, PStateMoving, and PStateRolling.
| Player* StatePlayer::player |
Reference to the player.
1.8.4