YAPOG  0.0.1
Yet Another Pokemon Online Game
ycl::RunWildBattlePhase Class Reference

#include <RunWildBattlePhase.hpp>

Inheritance diagram for ycl::RunWildBattlePhase:
Collaboration diagram for ycl::RunWildBattlePhase:

List of all members.

Public Member Functions

 RunWildBattlePhase (Battle &battle, BattleInterface &battleInterface)
virtual ~RunWildBattlePhase ()
void Init ()
BattlePhase members.
virtual void HandleStart (yap::PhaseArgs *args)
virtual void HandleUpdate (const yap::Time &dt)
virtual void HandleEnd ()
IDrawable members.
virtual void Draw (yap::IDrawingContext &context)
virtual bool IsVisible () const
virtual void Show (bool isVisible)
virtual void ChangeColor (const sf::Color &color)
- Public Member Functions inherited from yap::RunWildBattlePhase
 RunWildBattlePhase (Battle &battle)
- Public Member Functions inherited from yap::RunPhase
 RunPhase (Battle &battle)
- Public Member Functions inherited from yap::BattlePhase
 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)
PhaseArgsGetPhaseArgs ()
void SetPreviousPhase (const BattlePhaseState &value)
virtual void Update (const Time &dt)
 Makes the object evolve for one frame of the game.
virtual void Visit (const ActionPhaseArgs &visitable)
- Public Member Functions inherited from yap::IUpdateable
virtual ~IUpdateable ()
- Public Member Functions inherited from yap::IDrawable
virtual ~IDrawable ()

Protected Member Functions

virtual void HandleDraw (yap::IDrawingContext &context)
virtual void HandleShow (bool isVisible)
virtual void HandleChangeColor (const sf::Color &color)

Protected Attributes

bool isVisible_
sf::Color color_

Static Protected Attributes

static const bool DEFAULT_VISIBLE_STATE = true
static const sf::Color DEFAULT_COLOR = sf::Color ()

Private Attributes

Battlebattle_
BattleInterfacebattleInterface_
bool flagEndBattle_

Detailed Description

Definition at line 18 of file RunWildBattlePhase.hpp.


Constructor & Destructor Documentation

ycl::RunWildBattlePhase::RunWildBattlePhase ( Battle battle,
BattleInterface battleInterface 
)

Definition at line 13 of file RunWildBattlePhase.cpp.

ycl::RunWildBattlePhase::~RunWildBattlePhase ( )
virtual

Definition at line 21 of file RunWildBattlePhase.cpp.


Member Function Documentation

void ycl::RunWildBattlePhase::ChangeColor ( const sf::Color &  color)
virtual

Implements yap::IDrawable.

Definition at line 82 of file RunWildBattlePhase.cpp.

Here is the call graph for this function:

void ycl::RunWildBattlePhase::Draw ( yap::IDrawingContext context)
virtual

Implements yap::IDrawable.

Definition at line 62 of file RunWildBattlePhase.cpp.

Here is the call graph for this function:

void ycl::RunWildBattlePhase::HandleChangeColor ( const sf::Color &  color)
protectedvirtual

Definition at line 97 of file RunWildBattlePhase.cpp.

Here is the caller graph for this function:

void ycl::RunWildBattlePhase::HandleDraw ( yap::IDrawingContext context)
protectedvirtual

Definition at line 89 of file RunWildBattlePhase.cpp.

Here is the caller graph for this function:

void ycl::RunWildBattlePhase::HandleEnd ( )
virtual

Reimplemented from yap::RunWildBattlePhase.

Definition at line 57 of file RunWildBattlePhase.cpp.

void ycl::RunWildBattlePhase::HandleShow ( bool  isVisible)
protectedvirtual

Definition at line 93 of file RunWildBattlePhase.cpp.

Here is the caller graph for this function:

void ycl::RunWildBattlePhase::HandleStart ( yap::PhaseArgs args)
virtual

Reimplemented from yap::RunWildBattlePhase.

Definition at line 29 of file RunWildBattlePhase.cpp.

Here is the call graph for this function:

void ycl::RunWildBattlePhase::HandleUpdate ( const yap::Time dt)
virtual

Reimplemented from yap::RunWildBattlePhase.

Definition at line 52 of file RunWildBattlePhase.cpp.

void ycl::RunWildBattlePhase::Init ( )

Definition at line 25 of file RunWildBattlePhase.cpp.

bool ycl::RunWildBattlePhase::IsVisible ( ) const
virtual

Implements yap::IDrawable.

Definition at line 70 of file RunWildBattlePhase.cpp.

Here is the caller graph for this function:

void ycl::RunWildBattlePhase::Show ( bool  isVisible)
virtual

Implements yap::IDrawable.

Definition at line 75 of file RunWildBattlePhase.cpp.

Here is the call graph for this function:


Member Data Documentation

Battle& ycl::RunWildBattlePhase::battle_
private

Reimplemented from yap::BattlePhase.

Definition at line 57 of file RunWildBattlePhase.hpp.

BattleInterface& ycl::RunWildBattlePhase::battleInterface_
private

Definition at line 58 of file RunWildBattlePhase.hpp.

sf::Color ycl::RunWildBattlePhase::color_
protected

Definition at line 54 of file RunWildBattlePhase.hpp.

const sf::Color ycl::RunWildBattlePhase::DEFAULT_COLOR = sf::Color ()
staticprotected

Definition at line 51 of file RunWildBattlePhase.hpp.

const bool ycl::RunWildBattlePhase::DEFAULT_VISIBLE_STATE = true
staticprotected

Definition at line 50 of file RunWildBattlePhase.hpp.

bool ycl::RunWildBattlePhase::flagEndBattle_
private

Definition at line 59 of file RunWildBattlePhase.hpp.

bool ycl::RunWildBattlePhase::isVisible_
protected

Definition at line 53 of file RunWildBattlePhase.hpp.


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