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

#include <BaseScreen.hpp>

Inheritance diagram for ycl::BaseScreen:
Collaboration diagram for ycl::BaseScreen:

List of all members.

Public Member Functions

virtual ~BaseScreen ()
- Public Member Functions inherited from yap::GameScreen
 GameScreen (const ScreenType &type)
 Initializes a GameScreen with the ScreenType type.
virtual ~GameScreen ()
virtual void Init ()
 Called once after the add into a IGameScreenManager.
virtual void Activate ()
 Called each time this IGameScreen is slected to be run.
virtual void Deactivate ()
 Called each time this IGameScreen is not running anymore.
virtual void NextFrame ()
virtual const ScreenTypeRun (const Time &dt, IDrawingContext &context)
 Performs one frame of the screen life.
virtual const GuiManagerGetGuiManager () const
 Gets the root widget of this Screen.
virtual GuiManagerGetGuiManager ()
 Gets the root widget of this Screen.
virtual const ScreenTypeGetType () const
 Gets the unique type name of this Screen.
virtual Event< IGameScreen & > & OnGameExitedEvent ()
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.
- Public Member Functions inherited from yap::IGameScreen
virtual ~IGameScreen ()
- Public Member Functions inherited from yap::IEventHandler
virtual ~IEventHandler ()

Protected Member Functions

 BaseScreen (const yap::ScreenType &type, yap::IDrawingContext &context)
- Protected Member Functions inherited from yap::GameScreen
void ExitGame ()
virtual void CreateGuiManager ()
virtual void HandleRun (const Time &dt, IDrawingContext &context)
 Behavior of Run.
virtual void HandleInit ()
 Behavior of Init.
virtual void HandleActivate ()
 Behavior of Activate.
virtual void HandleDeactivate ()
 Behavior of Deactivate.
virtual bool HandleOnEvent (const GuiEvent &guiEvent)
 Behavior of OnEvent.
virtual bool HandleOnPriorityEvent (const GuiEvent &guiEvent)
 Behavior of OnPriorityEvent.

Protected Attributes

yap::IDrawingContextcontext_
Sessionsession_
yap::ContentManagercontentManager_
yap::ObjectFactoryobjectFactory_
yap::WorldObjectStateFactoryworldObjectStateFactory_
yap::GameInputManagergameInputManager_
yap::Loggerlogger_
- Protected Attributes inherited from yap::GameScreen
ScreenType nextScreen_
 Type of the Screen to be executed on next frame.
GuiManagerguiManager_
 Root widget if this GameScreen.

Private Member Functions

 DISALLOW_COPY (BaseScreen)

Additional Inherited Members

- Public Attributes inherited from yap::GameScreen
Event< IGameScreen & > OnGameExited

Detailed Description

Definition at line 20 of file BaseScreen.hpp.


Constructor & Destructor Documentation

ycl::BaseScreen::~BaseScreen ( )
virtual

Definition at line 26 of file BaseScreen.cpp.

ycl::BaseScreen::BaseScreen ( const yap::ScreenType type,
yap::IDrawingContext context 
)
explicitprotected

Definition at line 12 of file BaseScreen.cpp.


Member Function Documentation

ycl::BaseScreen::DISALLOW_COPY ( BaseScreen  )
private

Member Data Documentation

yap::ContentManager& ycl::BaseScreen::contentManager_
protected

Definition at line 38 of file BaseScreen.hpp.

yap::IDrawingContext& ycl::BaseScreen::context_
protected

Definition at line 34 of file BaseScreen.hpp.

yap::GameInputManager& ycl::BaseScreen::gameInputManager_
protected

Definition at line 43 of file BaseScreen.hpp.

yap::Logger& ycl::BaseScreen::logger_
protected

Definition at line 45 of file BaseScreen.hpp.

yap::ObjectFactory& ycl::BaseScreen::objectFactory_
protected

Definition at line 40 of file BaseScreen.hpp.

Session& ycl::BaseScreen::session_
protected

Definition at line 36 of file BaseScreen.hpp.

yap::WorldObjectStateFactory& ycl::BaseScreen::worldObjectStateFactory_
protected

Definition at line 41 of file BaseScreen.hpp.


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