YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::BattlePhaseManager Class Reference

#include <BattlePhaseManager.hpp>

Inheritance diagram for yap::BattlePhaseManager:
Collaboration diagram for yap::BattlePhaseManager:

List of all members.

Public Member Functions

 BattlePhaseManager ()
const BattlePhaseStateGetCurrentPhaseState () 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

Battlebattle_
BattlePhaseState currentPhaseState_
BattlePhasecurrentBattlePhase_
collection::Map
< BattlePhaseState,
BattlePhase * > 
battlePhases_

Static Private Attributes

static const BattlePhaseState DEFAULT_BATTLE_PHASE = BattlePhaseState::BeginBattle

Detailed Description

Definition at line 14 of file BattlePhaseManager.hpp.


Constructor & Destructor Documentation

yap::BattlePhaseManager::BattlePhaseManager ( )

Definition at line 18 of file BattlePhaseManager.cpp.


Member Function Documentation

void yap::BattlePhaseManager::AddPhase ( const BattlePhaseState battlePhaseState,
BattlePhase battlephase 
)

Definition at line 74 of file BattlePhaseManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const BattlePhaseState & yap::BattlePhaseManager::GetCurrentPhaseState ( ) const

Definition at line 37 of file BattlePhaseManager.cpp.

void yap::BattlePhaseManager::SetBattle ( Battle battle)

Definition at line 42 of file BattlePhaseManager.cpp.

Here is the caller graph for this function:

void yap::BattlePhaseManager::SetCurrentPhaseState ( const BattlePhaseState battlePhaseState)

Definition at line 26 of file BattlePhaseManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BattlePhaseManager::SwitchPhase ( const BattlePhaseState battlePhaseState)

Definition at line 47 of file BattlePhaseManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BattlePhaseManager::Update ( const Time dt)
virtual

Makes the object evolve for one frame of the game.

Parameters:
dtDelta time since the last frame.

Implements yap::IUpdateable.

Definition at line 65 of file BattlePhaseManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Battle* yap::BattlePhaseManager::battle_
private

Definition at line 37 of file BattlePhaseManager.hpp.

collection::Map<BattlePhaseState, BattlePhase*> yap::BattlePhaseManager::battlePhases_
private

Definition at line 40 of file BattlePhaseManager.hpp.

BattlePhase* yap::BattlePhaseManager::currentBattlePhase_
private

Definition at line 39 of file BattlePhaseManager.hpp.

BattlePhaseState yap::BattlePhaseManager::currentPhaseState_
private

Definition at line 38 of file BattlePhaseManager.hpp.

const BattlePhaseState yap::BattlePhaseManager::DEFAULT_BATTLE_PHASE = BattlePhaseState::BeginBattle
staticprivate

Definition at line 42 of file BattlePhaseManager.hpp.


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