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

#include <ActionPhase.hpp>

Inheritance diagram for ycl::ActionPhase:
Collaboration diagram for ycl::ActionPhase:

List of all members.

Public Member Functions

 ActionPhase (Battle &battle, BattleInterface &battleInterface)
virtual ~ActionPhase ()
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::ActionPhase
 ActionPhase (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_

Detailed Description

Definition at line 19 of file ActionPhase.hpp.


Constructor & Destructor Documentation

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

Definition at line 11 of file ActionPhase.cpp.

ycl::ActionPhase::~ActionPhase ( )
virtual

Definition at line 18 of file ActionPhase.cpp.


Member Function Documentation

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

Implements yap::IDrawable.

Definition at line 57 of file ActionPhase.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 37 of file ActionPhase.cpp.

Here is the call graph for this function:

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

Definition at line 72 of file ActionPhase.cpp.

Here is the caller graph for this function:

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

Definition at line 64 of file ActionPhase.cpp.

Here is the caller graph for this function:

void ycl::ActionPhase::HandleEnd ( )
virtual

Reimplemented from yap::ActionPhase.

Definition at line 32 of file ActionPhase.cpp.

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

Definition at line 68 of file ActionPhase.cpp.

Here is the caller graph for this function:

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

Reimplemented from yap::ActionPhase.

Definition at line 22 of file ActionPhase.cpp.

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

Reimplemented from yap::ActionPhase.

Definition at line 27 of file ActionPhase.cpp.

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

Implements yap::IDrawable.

Definition at line 45 of file ActionPhase.cpp.

Here is the caller graph for this function:

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

Implements yap::IDrawable.

Definition at line 50 of file ActionPhase.cpp.

Here is the call graph for this function:


Member Data Documentation

Battle& ycl::ActionPhase::battle_
private

Reimplemented from yap::BattlePhase.

Definition at line 56 of file ActionPhase.hpp.

BattleInterface& ycl::ActionPhase::battleInterface_
private

Definition at line 57 of file ActionPhase.hpp.

sf::Color ycl::ActionPhase::color_
protected

Definition at line 53 of file ActionPhase.hpp.

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

Definition at line 50 of file ActionPhase.hpp.

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

Definition at line 49 of file ActionPhase.hpp.

bool ycl::ActionPhase::isVisible_
protected

Definition at line 52 of file ActionPhase.hpp.


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