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

#include <EndTurnPhase.hpp>

Inheritance diagram for ycl::EndTurnPhase:
Collaboration diagram for ycl::EndTurnPhase:

List of all members.

Public Member Functions

 EndTurnPhase (Battle &battle)
virtual ~EndTurnPhase ()
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::EndTurnPhase
 EndTurnPhase (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 EndTurnPhase.hpp.


Constructor & Destructor Documentation

ycl::EndTurnPhase::EndTurnPhase ( Battle battle)
explicit

Definition at line 9 of file EndTurnPhase.cpp.

ycl::EndTurnPhase::~EndTurnPhase ( )
virtual

Definition at line 15 of file EndTurnPhase.cpp.


Member Function Documentation

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

Implements yap::IDrawable.

Definition at line 53 of file EndTurnPhase.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 33 of file EndTurnPhase.cpp.

Here is the call graph for this function:

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

Definition at line 68 of file EndTurnPhase.cpp.

Here is the caller graph for this function:

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

Definition at line 60 of file EndTurnPhase.cpp.

Here is the caller graph for this function:

void ycl::EndTurnPhase::HandleEnd ( )
virtual

Reimplemented from yap::EndTurnPhase.

Definition at line 28 of file EndTurnPhase.cpp.

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

Definition at line 64 of file EndTurnPhase.cpp.

Here is the caller graph for this function:

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

Reimplemented from yap::EndTurnPhase.

Definition at line 19 of file EndTurnPhase.cpp.

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

Reimplemented from yap::EndTurnPhase.

Definition at line 24 of file EndTurnPhase.cpp.

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

Implements yap::IDrawable.

Definition at line 41 of file EndTurnPhase.cpp.

Here is the caller graph for this function:

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

Implements yap::IDrawable.

Definition at line 46 of file EndTurnPhase.cpp.

Here is the call graph for this function:


Member Data Documentation

Battle& ycl::EndTurnPhase::battle_
private

Reimplemented from yap::BattlePhase.

Definition at line 54 of file EndTurnPhase.hpp.

sf::Color ycl::EndTurnPhase::color_
protected

Definition at line 51 of file EndTurnPhase.hpp.

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

Definition at line 48 of file EndTurnPhase.hpp.

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

Definition at line 47 of file EndTurnPhase.hpp.

bool ycl::EndTurnPhase::isVisible_
protected

Definition at line 50 of file EndTurnPhase.hpp.


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