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

#include <Game.hpp>

Inheritance diagram for ycl::Game:
Collaboration diagram for ycl::Game:

List of all members.

Public Member Functions

 Game (const yap::String &name)
 Initializes a Game with the name name.
virtual ~Game ()
virtual void HandleInit ()
virtual bool HandleOnEvent (const yap::GuiEvent &guiEvent)
virtual void HandleRun (const yap::Time &dt, yap::IDrawingContext &context)
virtual void HandleDispose ()
- Public Member Functions inherited from yap::Game
virtual void Init ()
virtual void Launch ()
virtual void Dispose ()
- Public Member Functions inherited from yap::IGame
virtual ~IGame ()

Static Public Attributes

static const yap::Vector2 SCREEN_SIZE = yap::Vector2 (800, 600)

Private Member Functions

void InitRandom ()
void InitContentManager (const yap::Path &contentRootPath)
void InitObjectFactory ()
void InitWorldObjectStateFactory ()
void InitGameInputManager ()
void InitDrawingContext (const yap::Vector2 &resolution)
void InitScreenManager ()
void InitLoggerManager ()

Private Attributes

Sessionsession_
yap::ContentManagercontentManager_
yap::ObjectFactoryobjectFactory_
yap::WorldObjectStateFactoryworldObjectStateFactory_
yap::GameInputManagergameInputManager_
yap::Loggerlogger_

Additional Inherited Members

- Protected Member Functions inherited from yap::Game
void Stop ()
IGameScreenManagerGetScreenManager ()
void SetScreenManager (IGameScreenManager *screenManager)
- Protected Attributes inherited from yap::Game
IDrawingContextdrawingContext_
sf::RenderWindow * window_
const String name_

Detailed Description

Definition at line 21 of file Game.hpp.


Constructor & Destructor Documentation

ycl::Game::Game ( const yap::String name)

Initializes a Game with the name name.

Reimplemented from yap::Game.

Definition at line 79 of file Game.cpp.

ycl::Game::~Game ( )
virtual

Reimplemented from yap::Game.

Definition at line 90 of file Game.cpp.


Member Function Documentation

void ycl::Game::HandleDispose ( )
virtual

Reimplemented from yap::Game.

Definition at line 138 of file Game.cpp.

Here is the call graph for this function:

void ycl::Game::HandleInit ( )
virtual

Implements yap::Game.

Definition at line 94 of file Game.cpp.

Here is the call graph for this function:

bool ycl::Game::HandleOnEvent ( const yap::GuiEvent guiEvent)
virtual

Reimplemented from yap::Game.

Definition at line 109 of file Game.cpp.

void ycl::Game::HandleRun ( const yap::Time dt,
yap::IDrawingContext context 
)
virtual

Reimplemented from yap::Game.

Definition at line 126 of file Game.cpp.

Here is the call graph for this function:

void ycl::Game::InitContentManager ( const yap::Path contentRootPath)
private

Definition at line 150 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Game::InitDrawingContext ( const yap::Vector2 resolution)
private

Definition at line 319 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Game::InitGameInputManager ( )
private
Todo:
Load `inputs' xml.

Definition at line 285 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Game::InitLoggerManager ( )
private

Definition at line 364 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Game::InitObjectFactory ( )
private

Definition at line 160 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Game::InitRandom ( )
private

Definition at line 145 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Game::InitScreenManager ( )
private

Definition at line 344 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::Game::InitWorldObjectStateFactory ( )
private

Definition at line 279 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

yap::ContentManager& ycl::Game::contentManager_
private

Definition at line 53 of file Game.hpp.

yap::GameInputManager& ycl::Game::gameInputManager_
private

Definition at line 58 of file Game.hpp.

yap::Logger& ycl::Game::logger_
private

Definition at line 60 of file Game.hpp.

yap::ObjectFactory& ycl::Game::objectFactory_
private

Definition at line 55 of file Game.hpp.

const yap::Vector2 ycl::Game::SCREEN_SIZE = yap::Vector2 (800, 600)
static

Definition at line 37 of file Game.hpp.

Session& ycl::Game::session_
private

Definition at line 51 of file Game.hpp.

yap::WorldObjectStateFactory& ycl::Game::worldObjectStateFactory_
private

Definition at line 56 of file Game.hpp.


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