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

#include <BattlePhase.hpp>

Inheritance diagram for ycl::BattlePhase:
Collaboration diagram for ycl::BattlePhase:

List of all members.

Public Member Functions

 BattlePhase (Battle &battle)
 BattlePhase (Battle &battle, const yap::BattlePhaseState &battlePhaseState)
virtual ~BattlePhase ()
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::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 Member Functions inherited from yap::BattlePhase
BattleGetBattle ()

Protected Attributes

bool isVisible_
sf::Color color_
- Protected Attributes inherited from yap::BattlePhase
BattlePhaseState state_
BattlePhaseState previousPhase_

Static Protected Attributes

static const bool DEFAULT_VISIBLE_STATE = true
static const sf::Color DEFAULT_COLOR = sf::Color ()

Private Attributes

Battlebattle_

Static Private Attributes

static const yap::BattlePhaseState DEFAULT_BATTLE_PHASE_STATE = yap::BattlePhaseState::BeginBattle

Detailed Description

Definition at line 17 of file BattlePhase.hpp.


Constructor & Destructor Documentation

ycl::BattlePhase::BattlePhase ( Battle battle)

Definition at line 13 of file BattlePhase.cpp.

ycl::BattlePhase::BattlePhase ( Battle battle,
const yap::BattlePhaseState battlePhaseState 
)

Definition at line 19 of file BattlePhase.cpp.

ycl::BattlePhase::~BattlePhase ( )
virtual

Definition at line 27 of file BattlePhase.cpp.


Member Function Documentation

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

Implements yap::IDrawable.

Definition at line 65 of file BattlePhase.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 45 of file BattlePhase.cpp.

Here is the call graph for this function:

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

Definition at line 80 of file BattlePhase.cpp.

Here is the caller graph for this function:

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

Definition at line 72 of file BattlePhase.cpp.

Here is the caller graph for this function:

void ycl::BattlePhase::HandleEnd ( )
virtual

Reimplemented from yap::BattlePhase.

Definition at line 40 of file BattlePhase.cpp.

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

Definition at line 76 of file BattlePhase.cpp.

Here is the caller graph for this function:

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

Reimplemented from yap::BattlePhase.

Definition at line 31 of file BattlePhase.cpp.

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

Reimplemented from yap::BattlePhase.

Definition at line 36 of file BattlePhase.cpp.

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

Implements yap::IDrawable.

Definition at line 53 of file BattlePhase.cpp.

Here is the caller graph for this function:

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

Implements yap::IDrawable.

Definition at line 58 of file BattlePhase.cpp.

Here is the call graph for this function:


Member Data Documentation

Battle& ycl::BattlePhase::battle_
private

Reimplemented from yap::BattlePhase.

Definition at line 55 of file BattlePhase.hpp.

sf::Color ycl::BattlePhase::color_
protected

Definition at line 52 of file BattlePhase.hpp.

const yap::BattlePhaseState ycl::BattlePhase::DEFAULT_BATTLE_PHASE_STATE = yap::BattlePhaseState::BeginBattle
staticprivate

Definition at line 57 of file BattlePhase.hpp.

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

Definition at line 49 of file BattlePhase.hpp.

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

Definition at line 48 of file BattlePhase.hpp.

bool ycl::BattlePhase::isVisible_
protected

Definition at line 51 of file BattlePhase.hpp.


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