![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
Interface for manipulate several IGameScreen. More...
#include <IGameScreenManager.hpp>
Public Member Functions | |
| virtual | ~IGameScreenManager () |
| virtual void | Init (const ScreenType &screenType)=0 |
| Initializes each IGameScreen added to this IGameScreenManager. | |
| virtual void | AddGameScreen (IGameScreen *gameScreen)=0 |
| Adds an IGameScreen to the set. | |
| virtual void | RemoveGameScreen (const ScreenType &screenType)=0 |
| Removes an IGameScreen from the set. | |
| virtual void | SetCurrentScreen (const ScreenType &screenType)=0 |
| Activate the IGameScreen associated to the ScreenType. | |
| virtual void | NextFrame ()=0 |
| virtual void | Run (const Time &dt, IDrawingContext &context)=0 |
| Runs the current IGameScreen. | |
| virtual Event < IGameScreenManager & > & | OnGameExitedEvent ()=0 |
Public Member Functions inherited from yap::IEventHandler | |
| virtual | ~IEventHandler () |
| virtual bool | OnEvent (const GuiEvent &guiEvent)=0 |
| Treats an event. Transferts the event before treating it. | |
| virtual bool | OnPriorityEvent (const GuiEvent &guiEvent)=0 |
| Treats an event. Treats the event before transfering it. | |
Interface for manipulate several IGameScreen.
Definition at line 11 of file IGameScreenManager.hpp.
|
inlinevirtual |
Definition at line 13 of file IGameScreenManager.hpp.
|
pure virtual |
Adds an IGameScreen to the set.
| gameScreen | IGameScreen to add to the set. |
Implemented in yap::GameScreenManager.
|
pure virtual |
Initializes each IGameScreen added to this IGameScreenManager.
| screenType | ScreenType associated to the IGameScreen to run first. |
Implemented in yap::GameScreenManager.
|
pure virtual |
|
pure virtual |
|
pure virtual |
Removes an IGameScreen from the set.
| gameScreen | IGameScreen to remove from the set. |
Implemented in yap::GameScreenManager.
|
pure virtual |
Runs the current IGameScreen.
| dt | Delta time since last frame. |
| context | IDrawingContext where to draw graphical elements. |
Implemented in yap::GameScreenManager.
|
pure virtual |
Activate the IGameScreen associated to the ScreenType.
| screenType | ScreenType of the IGameScreen to activate. |
Implemented in yap::GameScreenManager.