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

#include <SplashScreen.hpp>

Inheritance diagram for ycl::SplashScreen:
Collaboration diagram for ycl::SplashScreen:

List of all members.

Public Member Functions

 SplashScreen (yap::IDrawingContext &context)
virtual ~SplashScreen ()
- Public Member Functions inherited from ycl::BaseScreen
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

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

Private Member Functions

 DISALLOW_COPY (SplashScreen)

Private Attributes

yap::ISpritelogo_
yap::Label splashText_

Static Private Attributes

static const yap::ScreenType DEFAULT_NAME = "Splash"
static const yap::String DEFAULT_SPLASH_TEXT = "Appuyez sur Start !"

Additional Inherited Members

- Protected Attributes inherited from ycl::BaseScreen
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.

Detailed Description

Definition at line 16 of file SplashScreen.hpp.


Constructor & Destructor Documentation

ycl::SplashScreen::SplashScreen ( yap::IDrawingContext context)
explicit

Definition at line 15 of file SplashScreen.cpp.

ycl::SplashScreen::~SplashScreen ( )
virtual

Definition at line 22 of file SplashScreen.cpp.


Member Function Documentation

ycl::SplashScreen::DISALLOW_COPY ( SplashScreen  )
private
void ycl::SplashScreen::HandleActivate ( )
protectedvirtual

Behavior of Activate.

Reimplemented from yap::GameScreen.

Definition at line 46 of file SplashScreen.cpp.

Here is the call graph for this function:

void ycl::SplashScreen::HandleInit ( )
protectedvirtual

Behavior of Init.

Reimplemented from yap::GameScreen.

Definition at line 26 of file SplashScreen.cpp.

Here is the call graph for this function:

bool ycl::SplashScreen::HandleOnEvent ( const yap::GuiEvent guiEvent)
protectedvirtual

Behavior of OnEvent.

Reimplemented from yap::GameScreen.

Definition at line 62 of file SplashScreen.cpp.

Here is the call graph for this function:

void ycl::SplashScreen::HandleRun ( const yap::Time dt,
yap::IDrawingContext context 
)
protectedvirtual

Behavior of Run.

Reimplemented from yap::GameScreen.

Definition at line 53 of file SplashScreen.cpp.

Here is the call graph for this function:


Member Data Documentation

const yap::ScreenType ycl::SplashScreen::DEFAULT_NAME = "Splash"
staticprivate

Definition at line 39 of file SplashScreen.hpp.

const yap::String ycl::SplashScreen::DEFAULT_SPLASH_TEXT = "Appuyez sur Start !"
staticprivate

Definition at line 40 of file SplashScreen.hpp.

yap::ISprite* ycl::SplashScreen::logo_
private

Definition at line 36 of file SplashScreen.hpp.

yap::Label ycl::SplashScreen::splashText_
private

Definition at line 37 of file SplashScreen.hpp.


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