![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <GameScreenManager.hpp>
Public Member Functions | |
| GameScreenManager () | |
| virtual | ~GameScreenManager () |
IEventHandler members. | |
| 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. | |
IGameScreenManager members. | |
| virtual void | Init (const ScreenType &screenType) |
| Initializes each IGameScreen added to this IGameScreenManager. | |
| virtual void | AddGameScreen (IGameScreen *gameScreen) |
| Adds an IGameScreen to the set. | |
| virtual void | RemoveGameScreen (const ScreenType &screenType) |
| Removes an IGameScreen from the set. | |
| virtual void | SetCurrentScreen (const ScreenType &screenType) |
| Activate the IGameScreen associated to the ScreenType. | |
| virtual void | NextFrame () |
| virtual void | Run (const Time &dt, IDrawingContext &context) |
| Runs the current IGameScreen. | |
| virtual Event < IGameScreenManager & > & | OnGameExitedEvent () |
Public Member Functions inherited from yap::IGameScreenManager | |
| virtual | ~IGameScreenManager () |
Public Member Functions inherited from yap::IEventHandler | |
| virtual | ~IEventHandler () |
Public Attributes | |
| Event< IGameScreenManager & > | OnGameExited |
Private Member Functions | |
| DISALLOW_COPY (GameScreenManager) | |
Private Attributes | |
| ScreenType | currentScreenType_ |
| IGameScreen * | currentScreen_ |
| collection::Map< ScreenType, IGameScreen * > | screens_ |
Static Private Attributes | |
| static const String | GAME_EXITED_EVENT_HANDLER_NAME = "GameExitedEventHandler" |
Definition at line 10 of file GameScreenManager.hpp.
| yap::GameScreenManager::GameScreenManager | ( | ) |
Definition at line 10 of file GameScreenManager.cpp.
|
virtual |
Definition at line 17 of file GameScreenManager.cpp.
|
virtual |
Adds an IGameScreen to the set.
| gameScreen | IGameScreen to add to the set. |
Implements yap::IGameScreenManager.
Definition at line 41 of file GameScreenManager.cpp.
|
private |
|
virtual |
Initializes each IGameScreen added to this IGameScreenManager.
| screenType | ScreenType associated to the IGameScreen to run first. |
Implements yap::IGameScreenManager.
Definition at line 33 of file GameScreenManager.cpp.
|
virtual |
Implements yap::IGameScreenManager.
Definition at line 85 of file GameScreenManager.cpp.
|
virtual |
Treats an event. Transferts the event before treating it.
| guiEvent | The event to treat. |
Implements yap::IEventHandler.
Definition at line 23 of file GameScreenManager.cpp.
|
virtual |
Implements yap::IGameScreenManager.
Definition at line 95 of file GameScreenManager.cpp.
|
virtual |
Treats an event. Treats the event before transfering it.
| guiEvent | The event to treat. |
Implements yap::IEventHandler.
Definition at line 28 of file GameScreenManager.cpp.
|
virtual |
Removes an IGameScreen from the set.
| gameScreen | IGameScreen to remove from the set. |
Implements yap::IGameScreenManager.
Definition at line 53 of file GameScreenManager.cpp.
|
virtual |
Runs the current IGameScreen.
| dt | Delta time since last frame. |
| context | IDrawingContext where to draw graphical elements. |
Implements yap::IGameScreenManager.
Definition at line 90 of file GameScreenManager.cpp.
|
virtual |
Activate the IGameScreen associated to the ScreenType.
| screenType | ScreenType of the IGameScreen to activate. |
Implements yap::IGameScreenManager.
Definition at line 63 of file GameScreenManager.cpp.
|
private |
Definition at line 48 of file GameScreenManager.hpp.
|
private |
Definition at line 46 of file GameScreenManager.hpp.
|
staticprivate |
Definition at line 44 of file GameScreenManager.hpp.
| Event<IGameScreenManager&> yap::GameScreenManager::OnGameExited |
Definition at line 40 of file GameScreenManager.hpp.
|
private |
Definition at line 49 of file GameScreenManager.hpp.