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

#include <BeginWildBattlePhase.hpp>

Inheritance diagram for ycl::BeginWildBattlePhase:
Collaboration diagram for ycl::BeginWildBattlePhase:

List of all members.

Public Member Functions

 BeginWildBattlePhase (Battle &battle, BattleInterface &battleInterface)
virtual ~BeginWildBattlePhase ()
void Init ()
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 ()

Private Attributes

yap::String nextState_

Static Private Attributes

static const float GROUND_SPEED = 500.f
static const yap::String FISRT_STATE = "Init"

Detailed Description

Definition at line 20 of file BeginWildBattlePhase.hpp.


Constructor & Destructor Documentation

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

Definition at line 19 of file BeginWildBattlePhase.cpp.

ycl::BeginWildBattlePhase::~BeginWildBattlePhase ( )
virtual

Definition at line 25 of file BeginWildBattlePhase.cpp.


Member Function Documentation

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 207 of file BeginWildBattlePhase.cpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 199 of file BeginWildBattlePhase.cpp.

void ycl::BeginWildBattlePhase::HandleEnd ( )
virtual

Reimplemented from ycl::BeginBattlePhase.

Definition at line 194 of file BeginWildBattlePhase.cpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 203 of file BeginWildBattlePhase.cpp.

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

Reimplemented from ycl::BeginBattlePhase.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 106 of file BeginWildBattlePhase.cpp.

Here is the call graph for this function:

void ycl::BeginWildBattlePhase::Init ( )

Definition at line 29 of file BeginWildBattlePhase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::BeginWildBattlePhase::UpdateOpponentFront ( )
private

Definition at line 224 of file BeginWildBattlePhase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::BeginWildBattlePhase::UpdatePlayerTrainerBack ( )
private

Definition at line 211 of file BeginWildBattlePhase.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

sf::Color ycl::BeginWildBattlePhase::color_
protected

Reimplemented from ycl::BeginBattlePhase.

Definition at line 45 of file BeginWildBattlePhase.hpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 42 of file BeginWildBattlePhase.hpp.

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

Reimplemented from ycl::BeginBattlePhase.

Definition at line 41 of file BeginWildBattlePhase.hpp.

const yap::String ycl::BeginWildBattlePhase::FISRT_STATE = "Init"
staticprivate

Definition at line 54 of file BeginWildBattlePhase.hpp.

const float ycl::BeginWildBattlePhase::GROUND_SPEED = 500.f
staticprivate

Definition at line 53 of file BeginWildBattlePhase.hpp.

bool ycl::BeginWildBattlePhase::isVisible_
protected

Reimplemented from ycl::BeginBattlePhase.

Definition at line 44 of file BeginWildBattlePhase.hpp.

yap::String ycl::BeginWildBattlePhase::nextState_
private

Definition at line 51 of file BeginWildBattlePhase.hpp.


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