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

#include <WildBattle.hpp>

Inheritance diagram for ycl::WildBattle:
Collaboration diagram for ycl::WildBattle:

List of all members.

Public Member Functions

 WildBattle (BattleInterface &battleInterface)
virtual ~WildBattle ()
- Public Member Functions inherited from ycl::Battle
 Battle (BattleInterface &battleInterface)
virtual ~Battle ()
virtual void Draw (yap::IDrawingContext &context)
virtual bool IsVisible () const
virtual void Show (bool isVisible)
virtual void ChangeColor (const sf::Color &color)
yap::ISpriteGetBackground () const
 Getters.
yap::ISpriteGetPlayerGround () const
yap::ISpriteGetOpponentGround () const
yap::ISpriteGetPlayerTrainerBack () const
const yap::Vector2GetPlayerGroundPosition () const
const yap::Vector2GetOpponentGroundPosition () const
const yap::Vector2GetOpponentInfoPosition () const
const yap::Vector2GetPokemonInfoPosition () const
IDrawableBattleEntityGetPlayerTeam ()
 Getters.
IDrawableBattleEntityGetOpponent ()
void SetPlayerTeam (PokemonFighterTeam *playerTeam)
 Setters.
void SetOpponent (IDrawableBattleEntity *opponent)
- Public Member Functions inherited from yap::Battle
 Battle ()
void Init ()
void DisplayMoves ()
void DisplayTeam ()
virtual void Update (const Time &dt)
 Makes the object evolve for one frame of the game.
- Public Member Functions inherited from yap::IUpdateable
virtual ~IUpdateable ()
- Public Member Functions inherited from yap::IDrawable
virtual ~IDrawable ()

Protected Member Functions

virtual void HandleInit ()
virtual void HandleUpdate (const yap::Time &dt)
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_
- Protected Attributes inherited from ycl::Battle
BattleInterfacebattleInterface_

Static Protected Attributes

static const bool DEFAULT_VISIBLE_STATE
static const sf::Color DEFAULT_COLOR
- Static Protected Attributes inherited from ycl::Battle

Additional Inherited Members

- Public Attributes inherited from ycl::Battle
yap::Event< const Battle & > OnBattleEnd
- Static Public Attributes inherited from ycl::Battle
static const yap::Vector2 DEFAULT_OPPONENT_GROUND_SPRITES_SCALE = yap::Vector2 (0.75f, 0.75f)

Detailed Description

Definition at line 13 of file WildBattle.hpp.


Constructor & Destructor Documentation

ycl::WildBattle::WildBattle ( BattleInterface battleInterface)

Definition at line 13 of file WildBattle.cpp.

ycl::WildBattle::~WildBattle ( )
virtual

Definition at line 19 of file WildBattle.cpp.


Member Function Documentation

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

Reimplemented from ycl::Battle.

Definition at line 56 of file WildBattle.cpp.

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

Reimplemented from ycl::Battle.

Definition at line 47 of file WildBattle.cpp.

void ycl::WildBattle::HandleInit ( )
protectedvirtual

Reimplemented from ycl::Battle.

Definition at line 23 of file WildBattle.cpp.

Here is the call graph for this function:

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

Reimplemented from ycl::Battle.

Definition at line 52 of file WildBattle.cpp.

void ycl::WildBattle::HandleUpdate ( const yap::Time dt)
protectedvirtual

Reimplemented from ycl::Battle.

Definition at line 42 of file WildBattle.cpp.


Member Data Documentation

sf::Color ycl::WildBattle::color_
protected

Reimplemented from ycl::Battle.

Definition at line 31 of file WildBattle.hpp.

const sf::Color ycl::WildBattle::DEFAULT_COLOR
staticprotected

Reimplemented from ycl::Battle.

Definition at line 28 of file WildBattle.hpp.

const bool ycl::WildBattle::DEFAULT_VISIBLE_STATE
staticprotected

Reimplemented from ycl::Battle.

Definition at line 27 of file WildBattle.hpp.

bool ycl::WildBattle::isVisible_
protected

Reimplemented from ycl::Battle.

Definition at line 30 of file WildBattle.hpp.


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