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

#include <MapRootWidget.hpp>

Inheritance diagram for ycl::MapRootWidget:
Collaboration diagram for ycl::MapRootWidget:

List of all members.

Public Member Functions

 MapRootWidget ()
virtual ~MapRootWidget ()
void SetCurrentMap (Map *map)
- Public Member Functions inherited from yap::GameWorldWidget
virtual ~GameWorldWidget ()
virtual void AddGameWorldWidget (GameWorldWidget *gameWorldWidget)
virtual void RemoveGameWorldWidget (GameWorldWidget *gameWorldWidget)
virtual bool IsFocusable () const
- Public Member Functions inherited from yap::GameWidget
virtual ~GameWidget ()
- 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 ()

Protected Member Functions

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

Private Member Functions

 DISALLOW_COPY (MapRootWidget)
void AddPlayerInfoPanel (Player *player)
void RemovePlayerInfoPanel (Player *player)
void Clear ()
void HandleSetCurrentMap (Map *oldMap, Map *map)

Private Attributes

MapcurrentMap_
yap::collection::Map< Player
*, MapPlayerInfoPanel * > 
playerInfoPanels_

Detailed Description

Definition at line 14 of file MapRootWidget.hpp.


Constructor & Destructor Documentation

ycl::MapRootWidget::MapRootWidget ( )

Definition at line 10 of file MapRootWidget.cpp.

ycl::MapRootWidget::~MapRootWidget ( )
virtual

Definition at line 16 of file MapRootWidget.cpp.


Member Function Documentation

void ycl::MapRootWidget::AddPlayerInfoPanel ( Player player)
private

Definition at line 34 of file MapRootWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::MapRootWidget::Clear ( )
private

Definition at line 83 of file MapRootWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

ycl::MapRootWidget::DISALLOW_COPY ( MapRootWidget  )
private
Map & ycl::MapRootWidget::GetCurrentMap ( )
protected

Definition at line 29 of file MapRootWidget.cpp.

void ycl::MapRootWidget::HandleSetCurrentMap ( Map oldMap,
Map map 
)
private

Definition at line 54 of file MapRootWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::MapRootWidget::RemovePlayerInfoPanel ( Player player)
private

Definition at line 45 of file MapRootWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::MapRootWidget::SetCurrentMap ( Map map)

Definition at line 20 of file MapRootWidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Map* ycl::MapRootWidget::currentMap_
private

Definition at line 39 of file MapRootWidget.hpp.

yap::collection::Map<Player*, MapPlayerInfoPanel*> ycl::MapRootWidget::playerInfoPanels_
private

Definition at line 41 of file MapRootWidget.hpp.


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