![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <GameMainMenu.hpp>
Public Member Functions | |
| GameMainMenu () | |
| virtual | ~GameMainMenu () |
| void | Init (const yap::String &playerName) |
Public Member Functions inherited from ycl::GameMenu | |
| GameMenu (yap::Menu::Type menuType, const yap::Padding &ext, const yap::Padding &in, bool fixed) | |
| virtual | ~GameMenu () |
Public Member Functions inherited from yap::Menu | |
| Menu (Type type, Padding ext, Padding in, bool fixed) | |
| void | AddChild (MenuItem &child, LayoutBox::Align align=LayoutBox::Align::CENTER) |
| virtual | ~Menu () |
| void | SetSelectedBackground (WidgetBackground &background) |
| void | SetSelectedBorder (WidgetBorder &border) |
| virtual bool | IsFocusable () const |
| uint | GetCurrentSelect () const |
| void | SetFixed (bool state) |
| void | Clear () |
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 IWidget & | GetRoot () 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 Vector2 & | GetPosition () const |
| Gets the coordinates in pixels of the origin of this ISpatial from the global origin. | |
| virtual const Vector2 & | GetSize () const |
| Gets the size in pixels of this ISpatial. | |
| virtual const Vector2 & | GetTopLeft () const |
| virtual const Vector2 & | GetBottomRight () const |
| virtual const Vector2 & | GetCenter () const |
| virtual const sf::FloatRect & | GetRectangle () const |
| virtual WidgetBorder * | GetBorder () 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 () |
Public Attributes | |
| yap::Event< GameMainMenu &, const yap::EmptyEventArgs & > | OnPokedexItemActivated |
| yap::Event< GameMainMenu &, const yap::EmptyEventArgs & > | OnPokemonItemActivated |
| yap::Event< GameMainMenu &, const yap::EmptyEventArgs & > | OnTrainerCardItemActivated |
| yap::Event< GameMainMenu &, const yap::EmptyEventArgs & > | OnOptionItemActivated |
Private Member Functions | |
| DISALLOW_COPY (GameMainMenu) | |
| yap::MenuItem & | AddItem (const yap::String &itemName) |
Static Private Attributes | |
| static const yap::Menu::Type | DEFAULT_ALIGNMENT |
| static const yap::Padding | DEFAULT_PADDING = yap::Padding (5, 5, 5, 5) |
| static const sf::Color | DEFAULT_ITEM_COLOR = sf::Color (127, 127, 127) |
| static const yap::LayoutBox::Align | DEFAULT_ITEM_ALIGNMENT |
Additional Inherited Members | |
Protected Member Functions inherited from ycl::GameMenu | |
| virtual bool | HandleOnEvent (const yap::GuiEvent &guiEvent) |
| virtual void | HandleItemActivated () |
| virtual void | HandleItemSelected () |
Protected Member Functions inherited from yap::Menu | |
| 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) |
Protected Member Functions inherited from yap::BaseWidget | |
| void | RefreshBorder () |
| virtual void | SetFocused (bool state) |
| virtual void | Refresh () |
| virtual bool | HandleOnPriorityEvent (const GuiEvent &guiEvent) |
Definition at line 11 of file GameMainMenu.hpp.
| ycl::GameMainMenu::GameMainMenu | ( | ) |
Definition at line 19 of file GameMainMenu.cpp.
|
virtual |
Definition at line 115 of file GameMainMenu.cpp.
|
private |
Definition at line 119 of file GameMainMenu.cpp.
|
private |
| void ycl::GameMainMenu::Init | ( | const yap::String & | playerName | ) |
Definition at line 28 of file GameMainMenu.cpp.
|
staticprivate |
Definition at line 39 of file GameMainMenu.hpp.
|
staticprivate |
Definition at line 43 of file GameMainMenu.hpp.
|
staticprivate |
Definition at line 42 of file GameMainMenu.hpp.
|
staticprivate |
Definition at line 40 of file GameMainMenu.hpp.
| yap::Event< GameMainMenu&, const yap::EmptyEventArgs&> ycl::GameMainMenu::OnOptionItemActivated |
Definition at line 33 of file GameMainMenu.hpp.
| yap::Event< GameMainMenu&, const yap::EmptyEventArgs&> ycl::GameMainMenu::OnPokedexItemActivated |
Definition at line 24 of file GameMainMenu.hpp.
| yap::Event< GameMainMenu&, const yap::EmptyEventArgs&> ycl::GameMainMenu::OnPokemonItemActivated |
Definition at line 27 of file GameMainMenu.hpp.
| yap::Event< GameMainMenu&, const yap::EmptyEventArgs&> ycl::GameMainMenu::OnTrainerCardItemActivated |
Definition at line 30 of file GameMainMenu.hpp.