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

#include <BeginTurnPhase.hpp>

Inheritance diagram for ycl::BeginTurnPhase:
Collaboration diagram for ycl::BeginTurnPhase:

List of all members.

Public Member Functions

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


Constructor & Destructor Documentation

ycl::BeginTurnPhase::BeginTurnPhase ( Battle battle)
explicit

Definition at line 11 of file BeginTurnPhase.cpp.

ycl::BeginTurnPhase::~BeginTurnPhase ( )
virtual

Definition at line 17 of file BeginTurnPhase.cpp.


Member Function Documentation

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

Implements yap::IDrawable.

Definition at line 55 of file BeginTurnPhase.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 35 of file BeginTurnPhase.cpp.

Here is the call graph for this function:

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

Definition at line 70 of file BeginTurnPhase.cpp.

Here is the caller graph for this function:

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

Definition at line 62 of file BeginTurnPhase.cpp.

Here is the caller graph for this function:

void ycl::BeginTurnPhase::HandleEnd ( )
virtual

Reimplemented from yap::BeginTurnPhase.

Definition at line 30 of file BeginTurnPhase.cpp.

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

Definition at line 66 of file BeginTurnPhase.cpp.

Here is the caller graph for this function:

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

Reimplemented from yap::BeginTurnPhase.

Definition at line 21 of file BeginTurnPhase.cpp.

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

Reimplemented from yap::BeginTurnPhase.

Definition at line 26 of file BeginTurnPhase.cpp.

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

Implements yap::IDrawable.

Definition at line 43 of file BeginTurnPhase.cpp.

Here is the caller graph for this function:

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

Implements yap::IDrawable.

Definition at line 48 of file BeginTurnPhase.cpp.

Here is the call graph for this function:


Member Data Documentation

Battle& ycl::BeginTurnPhase::battle_
private

Reimplemented from yap::BattlePhase.

Definition at line 54 of file BeginTurnPhase.hpp.

sf::Color ycl::BeginTurnPhase::color_
protected

Definition at line 51 of file BeginTurnPhase.hpp.

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

Definition at line 48 of file BeginTurnPhase.hpp.

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

Definition at line 47 of file BeginTurnPhase.hpp.

bool ycl::BeginTurnPhase::isVisible_
protected

Definition at line 50 of file BeginTurnPhase.hpp.


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