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

#include <BeginTrainerBattlePhase.hpp>

Inheritance diagram for ycl::BeginTrainerBattlePhase:
Collaboration diagram for ycl::BeginTrainerBattlePhase:

List of all members.

Public Member Functions

 BeginTrainerBattlePhase (Battle &battle, BattleInterface &battleInterface)
virtual ~BeginTrainerBattlePhase ()
BattlePhase members.
virtual void HandleStart (yap::PhaseArgs *args)
virtual void HandleUpdate (const yap::Time &dt)
virtual void HandleEnd ()
- Public Member Functions inherited from ycl::BeginBattlePhase
virtual ~BeginBattlePhase ()
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

virtual void HandleDraw (yap::IDrawingContext &context)
virtual void HandleShow (bool isVisible)
virtual void HandleChangeColor (const sf::Color &color)
- Protected Member Functions inherited from ycl::BeginBattlePhase
 BeginBattlePhase (Battle &battle, BattleInterface &battleInterface)
- 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_
- Protected Attributes inherited from ycl::BeginBattlePhase
Battlebattle_
BattleInterfacebattleInterface_

Static Protected Attributes

static const bool DEFAULT_VISIBLE_STATE = true
static const sf::Color DEFAULT_COLOR = sf::Color ()
- Static Protected Attributes inherited from ycl::BeginBattlePhase

Private Member Functions

void UpdatePlayerTrainerBack ()
void UpdateOpponentFront ()

Detailed Description

Definition at line 20 of file BeginTrainerBattlePhase.hpp.


Constructor & Destructor Documentation

ycl::BeginTrainerBattlePhase::BeginTrainerBattlePhase ( Battle battle,
BattleInterface battleInterface 
)

Definition at line 17 of file BeginTrainerBattlePhase.cpp.

ycl::BeginTrainerBattlePhase::~BeginTrainerBattlePhase ( )
virtual

Definition at line 22 of file BeginTrainerBattlePhase.cpp.


Member Function Documentation

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 49 of file BeginTrainerBattlePhase.cpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 41 of file BeginTrainerBattlePhase.cpp.

void ycl::BeginTrainerBattlePhase::HandleEnd ( )
virtual

Reimplemented from ycl::BeginBattlePhase.

Definition at line 36 of file BeginTrainerBattlePhase.cpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 45 of file BeginTrainerBattlePhase.cpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 26 of file BeginTrainerBattlePhase.cpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 31 of file BeginTrainerBattlePhase.cpp.

void ycl::BeginTrainerBattlePhase::UpdateOpponentFront ( )
private
void ycl::BeginTrainerBattlePhase::UpdatePlayerTrainerBack ( )
private

Member Data Documentation

sf::Color ycl::BeginTrainerBattlePhase::color_
protected

Reimplemented from ycl::BeginBattlePhase.

Definition at line 43 of file BeginTrainerBattlePhase.hpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 40 of file BeginTrainerBattlePhase.hpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 39 of file BeginTrainerBattlePhase.hpp.

bool ycl::BeginTrainerBattlePhase::isVisible_
protected

Reimplemented from ycl::BeginBattlePhase.

Definition at line 42 of file BeginTrainerBattlePhase.hpp.


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