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

#include <EndBattlePhase.hpp>

Inheritance diagram for ycl::EndBattlePhase:
Collaboration diagram for ycl::EndBattlePhase:

List of all members.

Public Member Functions

 EndBattlePhase (Battle &battle)
virtual ~EndBattlePhase ()
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::EndBattlePhase
 EndBattlePhase (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_

Detailed Description

Definition at line 17 of file EndBattlePhase.hpp.


Constructor & Destructor Documentation

ycl::EndBattlePhase::EndBattlePhase ( Battle battle)

Definition at line 11 of file EndBattlePhase.cpp.

ycl::EndBattlePhase::~EndBattlePhase ( )
virtual

Definition at line 17 of file EndBattlePhase.cpp.


Member Function Documentation

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

Implements yap::IDrawable.

Definition at line 55 of file EndBattlePhase.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 35 of file EndBattlePhase.cpp.

Here is the call graph for this function:

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

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 70 of file EndBattlePhase.cpp.

Here is the caller graph for this function:

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

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 62 of file EndBattlePhase.cpp.

Here is the caller graph for this function:

void ycl::EndBattlePhase::HandleEnd ( )
virtual

Reimplemented from yap::EndBattlePhase.

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 30 of file EndBattlePhase.cpp.

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

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 66 of file EndBattlePhase.cpp.

Here is the caller graph for this function:

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

Reimplemented from yap::EndBattlePhase.

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 21 of file EndBattlePhase.cpp.

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

Reimplemented from yap::EndBattlePhase.

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 26 of file EndBattlePhase.cpp.

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

Implements yap::IDrawable.

Definition at line 43 of file EndBattlePhase.cpp.

Here is the caller graph for this function:

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

Implements yap::IDrawable.

Definition at line 48 of file EndBattlePhase.cpp.

Here is the call graph for this function:


Member Data Documentation

Battle& ycl::EndBattlePhase::battle_
private

Reimplemented from yap::BattlePhase.

Definition at line 54 of file EndBattlePhase.hpp.

sf::Color ycl::EndBattlePhase::color_
protected

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 51 of file EndBattlePhase.hpp.

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

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 48 of file EndBattlePhase.hpp.

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

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 47 of file EndBattlePhase.hpp.

bool ycl::EndBattlePhase::isVisible_
protected

Reimplemented in ycl::EndTrainerBattlePhase, and ycl::EndWildBattlePhase.

Definition at line 50 of file EndBattlePhase.hpp.


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