YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::IGameScreenManager Struct Reference

Interface for manipulate several IGameScreen. More...

#include <IGameScreenManager.hpp>

Inheritance diagram for yap::IGameScreenManager:
Collaboration diagram for yap::IGameScreenManager:

List of all members.

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.

Detailed Description

Interface for manipulate several IGameScreen.

Definition at line 11 of file IGameScreenManager.hpp.


Constructor & Destructor Documentation

virtual yap::IGameScreenManager::~IGameScreenManager ( )
inlinevirtual

Definition at line 13 of file IGameScreenManager.hpp.


Member Function Documentation

virtual void yap::IGameScreenManager::AddGameScreen ( IGameScreen gameScreen)
pure virtual

Adds an IGameScreen to the set.

Parameters:
gameScreenIGameScreen to add to the set.

Implemented in yap::GameScreenManager.

Here is the caller graph for this function:

virtual void yap::IGameScreenManager::Init ( const ScreenType screenType)
pure virtual

Initializes each IGameScreen added to this IGameScreenManager.

Parameters:
screenTypeScreenType associated to the IGameScreen to run first.

Implemented in yap::GameScreenManager.

Here is the caller graph for this function:

virtual void yap::IGameScreenManager::NextFrame ( )
pure virtual

Implemented in yap::GameScreenManager.

Here is the caller graph for this function:

virtual Event<IGameScreenManager&>& yap::IGameScreenManager::OnGameExitedEvent ( )
pure virtual

Implemented in yap::GameScreenManager.

Here is the caller graph for this function:

virtual void yap::IGameScreenManager::RemoveGameScreen ( const ScreenType screenType)
pure virtual

Removes an IGameScreen from the set.

Parameters:
gameScreenIGameScreen to remove from the set.

Implemented in yap::GameScreenManager.

virtual void yap::IGameScreenManager::Run ( const Time dt,
IDrawingContext context 
)
pure virtual

Runs the current IGameScreen.

Parameters:
dtDelta time since last frame.
contextIDrawingContext where to draw graphical elements.

Implemented in yap::GameScreenManager.

Here is the caller graph for this function:

virtual void yap::IGameScreenManager::SetCurrentScreen ( const ScreenType screenType)
pure virtual

Activate the IGameScreen associated to the ScreenType.

Parameters:
screenTypeScreenType of the IGameScreen to activate.

Implemented in yap::GameScreenManager.


The documentation for this struct was generated from the following file: