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

#include <BeginBattlePhase.hpp>

Inheritance diagram for ycl::BeginBattlePhase:
Collaboration diagram for ycl::BeginBattlePhase:

List of all members.

Public Member Functions

virtual ~BeginBattlePhase ()
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)
BattlePhase members.
- 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

 BeginBattlePhase (Battle &battle, BattleInterface &battleInterface)
virtual void HandleDraw (yap::IDrawingContext &context)
virtual void HandleShow (bool isVisible)
virtual void HandleChangeColor (const sf::Color &color)
- Protected Member Functions inherited from yap::BeginBattlePhase
 BeginBattlePhase (Battle &battle)
- Protected Member Functions inherited from yap::BattlePhase
BattleGetBattle ()

Protected Attributes

bool isVisible_
sf::Color color_
Battlebattle_
BattleInterfacebattleInterface_

Static Protected Attributes

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

Detailed Description

Definition at line 18 of file BeginBattlePhase.hpp.


Constructor & Destructor Documentation

ycl::BeginBattlePhase::~BeginBattlePhase ( )
virtual

Reimplemented from yap::BeginBattlePhase.

Definition at line 23 of file BeginBattlePhase.cpp.

ycl::BeginBattlePhase::BeginBattlePhase ( Battle battle,
BattleInterface battleInterface 
)
protected

Definition at line 16 of file BeginBattlePhase.cpp.


Member Function Documentation

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

Implements yap::IDrawable.

Definition at line 62 of file BeginBattlePhase.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 42 of file BeginBattlePhase.cpp.

Here is the call graph for this function:

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

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 77 of file BeginBattlePhase.cpp.

Here is the caller graph for this function:

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

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 69 of file BeginBattlePhase.cpp.

Here is the caller graph for this function:

void ycl::BeginBattlePhase::HandleEnd ( )
virtual

Reimplemented from yap::BeginBattlePhase.

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 37 of file BeginBattlePhase.cpp.

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

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 73 of file BeginBattlePhase.cpp.

Here is the caller graph for this function:

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

Reimplemented from yap::BeginBattlePhase.

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 27 of file BeginBattlePhase.cpp.

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

Reimplemented from yap::BeginBattlePhase.

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 32 of file BeginBattlePhase.cpp.

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

Implements yap::IDrawable.

Definition at line 50 of file BeginBattlePhase.cpp.

Here is the caller graph for this function:

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

Implements yap::IDrawable.

Definition at line 55 of file BeginBattlePhase.cpp.

Here is the call graph for this function:


Member Data Documentation

Battle& ycl::BeginBattlePhase::battle_
protected

Reimplemented from yap::BattlePhase.

Definition at line 55 of file BeginBattlePhase.hpp.

BattleInterface& ycl::BeginBattlePhase::battleInterface_
protected

Definition at line 56 of file BeginBattlePhase.hpp.

sf::Color ycl::BeginBattlePhase::color_
protected

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 53 of file BeginBattlePhase.hpp.

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

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 50 of file BeginBattlePhase.hpp.

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

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 49 of file BeginBattlePhase.hpp.

bool ycl::BeginBattlePhase::isVisible_
protected

Reimplemented in ycl::BeginWildBattlePhase, and ycl::BeginTrainerBattlePhase.

Definition at line 52 of file BeginBattlePhase.hpp.


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