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

#include <BattleInterface.hpp>

Inheritance diagram for ycl::BattleInterface:
Collaboration diagram for ycl::BattleInterface:

List of all members.

Public Member Functions

 BattleInterface ()
void Reset ()
void AddBattleWidget (const yap::String &name, yap::IWidget *battleWidget)
void SetCurrentWidget (const yap::String &name)
bool UnsetCurrentWidget ()
Getters.
yap::DialogBoxWidgetGetBattleInfoDialogBox ()
 Getters.
PokemonBattleInfoWidgetGetPokemonInfoWidget ()
OpponentBattleInfoWidgetGetOpponentInfoWidget ()
BattleMenuGetBattleMenu ()
BattleMoveMenuGetBattleMoveMenu ()
BattleMoveInfoMenuGetBattleMoveInfoMenu ()
- Public Member Functions inherited from ycl::BaseBattleWidget
 BaseBattleWidget ()
virtual bool IsFocusable () const
- Public Member Functions inherited from yap::BaseWidget
 BaseWidget ()
virtual ~BaseWidget ()
virtual void AddDrawable (IDrawable &drawable)
virtual void AddChild (IWidget &child)
virtual void FrontAddChild (IWidget &child)
virtual void RemoveChild (IWidget &child)
virtual IWidgetGetRoot () const
virtual void SetDefaultColor (const sf::Color &color)
virtual void SetParent (IWidget &parent)
virtual void SetPadding (const Padding &padding)
virtual void SetBackground (WidgetBackground &background)
virtual void SetBorder (WidgetBorder &border, uint width)
virtual void SetBorder (WidgetBorder &border)
virtual void UnsetBackground ()
virtual void UnsetBorder ()
Vector2 GetUserSize () const
virtual void SetToTop ()
virtual void SetEnable (bool enable)
virtual void Open ()
virtual void Close ()
virtual const Vector2GetPosition () const
 Gets the coordinates in pixels of the origin of this ISpatial from the global origin.
virtual const Vector2GetSize () const
 Gets the size in pixels of this ISpatial.
virtual const Vector2GetTopLeft () const
virtual const Vector2GetBottomRight () const
virtual const Vector2GetCenter () const
virtual const sf::FloatRect & GetRectangle () const
virtual WidgetBorderGetBorder () const
virtual void Move (const Vector2 &offset)
virtual void Scale (const Vector2 &factor)
virtual void SetPosition (const Vector2 &position)
virtual void SetSize (const Vector2 &size)
virtual void Draw (IDrawingContext &context)
virtual bool IsVisible () const
virtual void Show (bool isVisible)
virtual void ChangeColor (const sf::Color &color)
virtual bool OnEvent (const GuiEvent &guiEvent)
 Treats an event. Transferts the event before treating it.
virtual bool OnPriorityEvent (const GuiEvent &guiEvent)
 Treats an event. Treats the event before transfering it.
virtual void Update (const Time &dt)
 Makes the object evolve for one frame of the game.
- Public Member Functions inherited from yap::IWidget
virtual ~IWidget ()
- Public Member Functions inherited from yap::ISpatial
virtual ~ISpatial ()
- Public Member Functions inherited from yap::IDrawable
virtual ~IDrawable ()
- Public Member Functions inherited from yap::IEventHandler
virtual ~IEventHandler ()
- Public Member Functions inherited from yap::IUpdateable
virtual ~IUpdateable ()

Private Member Functions

void OpenBattleMoveMenu ()

Private Attributes

yap::DialogBoxWidgetbattleInfoDialogBox_
PokemonBattleInfoWidgetpokemonInfoWidget_
OpponentBattleInfoWidgetopponentInfoWidget_
BattleMenu battleMenu_
BattleMoveMenu battleMoveMenu_
BattleMoveInfoMenu battleMoveInfoMenu_
yap::String currentWidgetName_
yap::IWidgetcurrentWidget_
yap::collection::Map
< yap::String, yap::IWidget * > 
battleWidgets_

Static Private Attributes

static const bool DEFAULT_ADDED_WIDGET_STATE = false

Additional Inherited Members

- Protected Member Functions inherited from ycl::BaseBattleWidget
virtual void HandleMove (const yap::Vector2 &offset)
virtual void HandleScale (const yap::Vector2 &factor)
virtual void HandleDraw (yap::IDrawingContext &context)
virtual void HandleShow (bool isVisible)
virtual void HandleChangeColor (const sf::Color &color)
virtual void HandleUpdate (const yap::Time &dt)
- Protected Member Functions inherited from yap::BaseWidget
void RefreshBorder ()
virtual void SetFocused (bool state)
virtual void Refresh ()
virtual Vector2 HandleGetSize () const
virtual bool HandleOnEvent (const GuiEvent &guiEvent)
virtual bool HandleOnPriorityEvent (const GuiEvent &guiEvent)

Detailed Description

Definition at line 25 of file BattleInterface.hpp.


Constructor & Destructor Documentation

ycl::BattleInterface::BattleInterface ( )

Definition at line 24 of file BattleInteface.cpp.

Here is the call graph for this function:


Member Function Documentation

void ycl::BattleInterface::AddBattleWidget ( const yap::String name,
yap::IWidget battleWidget 
)

Definition at line 99 of file BattleInteface.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yap::DialogBoxWidget & ycl::BattleInterface::GetBattleInfoDialogBox ( )

Getters.

Definition at line 137 of file BattleInteface.cpp.

Here is the caller graph for this function:

BattleMenu & ycl::BattleInterface::GetBattleMenu ( )

Definition at line 152 of file BattleInteface.cpp.

Here is the caller graph for this function:

BattleMoveInfoMenu & ycl::BattleInterface::GetBattleMoveInfoMenu ( )

Definition at line 162 of file BattleInteface.cpp.

Here is the caller graph for this function:

BattleMoveMenu & ycl::BattleInterface::GetBattleMoveMenu ( )

Definition at line 157 of file BattleInteface.cpp.

Here is the caller graph for this function:

OpponentBattleInfoWidget & ycl::BattleInterface::GetOpponentInfoWidget ( )

Definition at line 147 of file BattleInteface.cpp.

Here is the caller graph for this function:

PokemonBattleInfoWidget & ycl::BattleInterface::GetPokemonInfoWidget ( )

Definition at line 142 of file BattleInteface.cpp.

Here is the caller graph for this function:

void ycl::BattleInterface::OpenBattleMoveMenu ( )
private

Definition at line 167 of file BattleInteface.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::BattleInterface::Reset ( )

Definition at line 173 of file BattleInteface.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::BattleInterface::SetCurrentWidget ( const yap::String name)

Definition at line 109 of file BattleInteface.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ycl::BattleInterface::UnsetCurrentWidget ( )

Definition at line 124 of file BattleInteface.cpp.

Here is the call graph for this function:


Member Data Documentation

yap::DialogBoxWidget* ycl::BattleInterface::battleInfoDialogBox_
private

Definition at line 50 of file BattleInterface.hpp.

BattleMenu ycl::BattleInterface::battleMenu_
private

Definition at line 53 of file BattleInterface.hpp.

BattleMoveInfoMenu ycl::BattleInterface::battleMoveInfoMenu_
private

Definition at line 55 of file BattleInterface.hpp.

BattleMoveMenu ycl::BattleInterface::battleMoveMenu_
private

Definition at line 54 of file BattleInterface.hpp.

yap::collection::Map<yap::String, yap::IWidget*> ycl::BattleInterface::battleWidgets_
private

Definition at line 59 of file BattleInterface.hpp.

yap::IWidget* ycl::BattleInterface::currentWidget_
private

Definition at line 58 of file BattleInterface.hpp.

yap::String ycl::BattleInterface::currentWidgetName_
private

Definition at line 57 of file BattleInterface.hpp.

const bool ycl::BattleInterface::DEFAULT_ADDED_WIDGET_STATE = false
staticprivate

Definition at line 61 of file BattleInterface.hpp.

OpponentBattleInfoWidget* ycl::BattleInterface::opponentInfoWidget_
private

Definition at line 52 of file BattleInterface.hpp.

PokemonBattleInfoWidget* ycl::BattleInterface::pokemonInfoWidget_
private

Definition at line 51 of file BattleInterface.hpp.


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