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

#include <BattlePhase.hpp>

Inheritance diagram for yap::BattlePhase:
Collaboration diagram for yap::BattlePhase:

List of all members.

Public Member Functions

 BattlePhase (Battle &battle, const BattlePhaseState &battlePhaseState)
const BattlePhaseStateGetNext () const
 Getters.
void Start (PhaseArgs *args)
void End ()
void SwitchPhase (BattlePhaseState nextPhase)
void SwitchPhase (BattlePhaseState nextPhase, PhaseArgs *args)
Getters.
PhaseArgsGetPhaseArgs ()
Setters.
void SetPreviousPhase (const BattlePhaseState &value)
IUpdateable members.
virtual void Update (const Time &dt)
 Makes the object evolve for one frame of the game.
Visitor's methods.
virtual void Visit (const ActionPhaseArgs &visitable)
- Public Member Functions inherited from yap::IUpdateable
virtual ~IUpdateable ()

Protected Member Functions

virtual void HandleStart (PhaseArgs *args)
virtual void HandleEnd ()
virtual void HandleUpdate (const Time &dt)
BattleGetBattle ()

Protected Attributes

BattlePhaseState state_
BattlePhaseState previousPhase_

Private Attributes

BattlePhaseState nextPhase_
PhaseArgsphaseArgs_
Battlebattle_

Detailed Description

Definition at line 14 of file BattlePhase.hpp.


Constructor & Destructor Documentation

yap::BattlePhase::BattlePhase ( Battle battle,
const BattlePhaseState battlePhaseState 
)

Definition at line 7 of file BattlePhase.cpp.


Member Function Documentation

void yap::BattlePhase::End ( )

Definition at line 26 of file BattlePhase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Battle & yap::BattlePhase::GetBattle ( )
protected

Definition at line 51 of file BattlePhase.cpp.

const BattlePhaseState & yap::BattlePhase::GetNext ( ) const

Getters.

Definition at line 56 of file BattlePhase.cpp.

Here is the caller graph for this function:

PhaseArgs * yap::BattlePhase::GetPhaseArgs ( )

Definition at line 16 of file BattlePhase.cpp.

Here is the caller graph for this function:

void yap::BattlePhase::HandleStart ( PhaseArgs args)
protectedvirtual

Reimplemented in ycl::BeginWildBattlePhase, ycl::RunWildBattlePhase, ycl::SelectionPhase, ycl::ActionPhase, ycl::BeginTrainerBattlePhase, ycl::BattlePhase, ycl::EndPokemonSwitchPhase, ycl::BeginBattlePhase, ycl::BeginTurnPhase, ycl::EndBattlePhase, ycl::EndTrainerBattlePhase, ycl::EndTurnPhase, ycl::EndWildBattlePhase, yap::BeginBattlePhase, yap::BeginTurnPhase, yap::EndBattlePhase, yap::EndPokemonSwitchPhase, yap::EndTurnPhase, yap::RunPhase, yap::RunWildBattlePhase, yap::SelectionPhase, and yap::ActionPhase.

Definition at line 37 of file BattlePhase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BattlePhase::SetPreviousPhase ( const BattlePhaseState value)

Definition at line 61 of file BattlePhase.cpp.

Here is the caller graph for this function:

void yap::BattlePhase::Start ( PhaseArgs args)

Definition at line 21 of file BattlePhase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BattlePhase::SwitchPhase ( BattlePhaseState  nextPhase)

Definition at line 64 of file BattlePhase.cpp.

Here is the caller graph for this function:

void yap::BattlePhase::SwitchPhase ( BattlePhaseState  nextPhase,
PhaseArgs args 
)

Definition at line 70 of file BattlePhase.cpp.

void yap::BattlePhase::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 31 of file BattlePhase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::BattlePhase::Visit ( const ActionPhaseArgs visitable)
virtual

Definition at line 77 of file BattlePhase.cpp.

Here is the caller graph for this function:


Member Data Documentation

BattlePhaseState yap::BattlePhase::nextPhase_
private

Reimplemented in ycl::EndPokemonSwitchPhase.

Definition at line 59 of file BattlePhase.hpp.

PhaseArgs* yap::BattlePhase::phaseArgs_
private

Definition at line 60 of file BattlePhase.hpp.

BattlePhaseState yap::BattlePhase::previousPhase_
protected

Definition at line 56 of file BattlePhase.hpp.

BattlePhaseState yap::BattlePhase::state_
protected

Definition at line 55 of file BattlePhase.hpp.


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