![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <BattlePhaseManager.hpp>
Public Member Functions | |
| BattlePhaseManager () | |
| const BattlePhaseState & | GetCurrentPhaseState () const |
| void | SetCurrentPhaseState (const BattlePhaseState &battlePhaseState) |
| void | SetBattle (Battle *battle) |
| void | SwitchPhase (const BattlePhaseState &battlePhaseState) |
| void | AddPhase (const BattlePhaseState &battlePhaseState, BattlePhase *battlephase) |
IUpdateable members. | |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Private Attributes | |
| Battle * | battle_ |
| BattlePhaseState | currentPhaseState_ |
| BattlePhase * | currentBattlePhase_ |
| collection::Map < BattlePhaseState, BattlePhase * > | battlePhases_ |
Static Private Attributes | |
| static const BattlePhaseState | DEFAULT_BATTLE_PHASE = BattlePhaseState::BeginBattle |
Definition at line 14 of file BattlePhaseManager.hpp.
| yap::BattlePhaseManager::BattlePhaseManager | ( | ) |
Definition at line 18 of file BattlePhaseManager.cpp.
| void yap::BattlePhaseManager::AddPhase | ( | const BattlePhaseState & | battlePhaseState, |
| BattlePhase * | battlephase | ||
| ) |
Definition at line 74 of file BattlePhaseManager.cpp.
| const BattlePhaseState & yap::BattlePhaseManager::GetCurrentPhaseState | ( | ) | const |
Definition at line 37 of file BattlePhaseManager.cpp.
| void yap::BattlePhaseManager::SetBattle | ( | Battle * | battle | ) |
| void yap::BattlePhaseManager::SetCurrentPhaseState | ( | const BattlePhaseState & | battlePhaseState | ) |
Definition at line 26 of file BattlePhaseManager.cpp.
| void yap::BattlePhaseManager::SwitchPhase | ( | const BattlePhaseState & | battlePhaseState | ) |
Definition at line 47 of file BattlePhaseManager.cpp.
|
virtual |
Makes the object evolve for one frame of the game.
| dt | Delta time since the last frame. |
Implements yap::IUpdateable.
Definition at line 65 of file BattlePhaseManager.cpp.
|
private |
Definition at line 37 of file BattlePhaseManager.hpp.
|
private |
Definition at line 40 of file BattlePhaseManager.hpp.
|
private |
Definition at line 39 of file BattlePhaseManager.hpp.
|
private |
Definition at line 38 of file BattlePhaseManager.hpp.
|
staticprivate |
Definition at line 42 of file BattlePhaseManager.hpp.