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

#include <EndPokemonSwitchPhase.hpp>

Inheritance diagram for ycl::EndPokemonSwitchPhase:
Collaboration diagram for ycl::EndPokemonSwitchPhase:

List of all members.

Public Member Functions

 EndPokemonSwitchPhase (Battle &battle, BattleInterface &battleInterface)
virtual ~EndPokemonSwitchPhase ()
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::EndPokemonSwitchPhase
 EndPokemonSwitchPhase (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 ()
static const float BATTLE_INFO_SPEED = 500.f

Private Attributes

Battlebattle_
BattleInterfacebattleInterface_
yap::BattlePhaseState nextPhase_

Detailed Description

Definition at line 18 of file EndPokemonSwitchPhase.hpp.


Constructor & Destructor Documentation

ycl::EndPokemonSwitchPhase::EndPokemonSwitchPhase ( Battle battle,
BattleInterface battleInterface 
)
explicit

Definition at line 20 of file EndPokemonSwitchPhase.cpp.

ycl::EndPokemonSwitchPhase::~EndPokemonSwitchPhase ( )
virtual

Definition at line 28 of file EndPokemonSwitchPhase.cpp.


Member Function Documentation

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

Implements yap::IDrawable.

Definition at line 200 of file EndPokemonSwitchPhase.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 180 of file EndPokemonSwitchPhase.cpp.

Here is the call graph for this function:

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

Definition at line 215 of file EndPokemonSwitchPhase.cpp.

Here is the caller graph for this function:

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

Definition at line 207 of file EndPokemonSwitchPhase.cpp.

Here is the caller graph for this function:

void ycl::EndPokemonSwitchPhase::HandleEnd ( )
virtual

Reimplemented from yap::EndPokemonSwitchPhase.

Definition at line 172 of file EndPokemonSwitchPhase.cpp.

Here is the call graph for this function:

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

Definition at line 211 of file EndPokemonSwitchPhase.cpp.

Here is the caller graph for this function:

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

Reimplemented from yap::EndPokemonSwitchPhase.

Definition at line 32 of file EndPokemonSwitchPhase.cpp.

Here is the call graph for this function:

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

Reimplemented from yap::EndPokemonSwitchPhase.

Definition at line 146 of file EndPokemonSwitchPhase.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 188 of file EndPokemonSwitchPhase.cpp.

Here is the caller graph for this function:

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

Implements yap::IDrawable.

Definition at line 193 of file EndPokemonSwitchPhase.cpp.

Here is the call graph for this function:


Member Data Documentation

Battle& ycl::EndPokemonSwitchPhase::battle_
private

Reimplemented from yap::BattlePhase.

Definition at line 56 of file EndPokemonSwitchPhase.hpp.

const float ycl::EndPokemonSwitchPhase::BATTLE_INFO_SPEED = 500.f
staticprotected

Definition at line 50 of file EndPokemonSwitchPhase.hpp.

BattleInterface& ycl::EndPokemonSwitchPhase::battleInterface_
private

Definition at line 57 of file EndPokemonSwitchPhase.hpp.

sf::Color ycl::EndPokemonSwitchPhase::color_
protected

Definition at line 53 of file EndPokemonSwitchPhase.hpp.

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

Definition at line 49 of file EndPokemonSwitchPhase.hpp.

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

Definition at line 48 of file EndPokemonSwitchPhase.hpp.

bool ycl::EndPokemonSwitchPhase::isVisible_
protected

Definition at line 52 of file EndPokemonSwitchPhase.hpp.

yap::BattlePhaseState ycl::EndPokemonSwitchPhase::nextPhase_
private

Reimplemented from yap::BattlePhase.

Definition at line 58 of file EndPokemonSwitchPhase.hpp.


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