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

#include <Game.hpp>

Inheritance diagram for yap::Game:
Collaboration diagram for yap::Game:

List of all members.

Public Member Functions

 Game (const String &name)
 Initializes a Game with the name name.
virtual ~Game ()
IGame members.
virtual void Init ()
virtual void Launch ()
virtual void Dispose ()
- Public Member Functions inherited from yap::IGame
virtual ~IGame ()

Protected Member Functions

void Stop ()
IGameScreenManagerGetScreenManager ()
void SetScreenManager (IGameScreenManager *screenManager)
virtual void HandleInit ()=0
virtual void HandleRun (const Time &dt, IDrawingContext &context)
virtual bool HandleOnEvent (const GuiEvent &guiEvent)
virtual void HandleDispose ()

Protected Attributes

IDrawingContextdrawingContext_
sf::RenderWindow * window_
const String name_

Private Member Functions

 DISALLOW_COPY (Game)

Private Attributes

IGameScreenManagerscreenManager_
bool isRunning_
Timer timer_

Detailed Description

Definition at line 19 of file Game.hpp.


Constructor & Destructor Documentation

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

Initializes a Game with the name name.

Reimplemented in ycl::Game.

Definition at line 10 of file Game.cpp.

yap::Game::~Game ( )
virtual

Reimplemented in ycl::Game.

Definition at line 20 of file Game.cpp.


Member Function Documentation

yap::Game::DISALLOW_COPY ( Game  )
private
void yap::Game::Dispose ( )
virtual

Implements yap::IGame.

Definition at line 76 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

IGameScreenManager & yap::Game::GetScreenManager ( )
protected

Definition at line 86 of file Game.cpp.

Here is the caller graph for this function:

void yap::Game::HandleDispose ( )
protectedvirtual

Reimplemented in ycl::Game.

Definition at line 127 of file Game.cpp.

Here is the caller graph for this function:

virtual void yap::Game::HandleInit ( )
protectedpure virtual

Implemented in ycl::Game.

Here is the caller graph for this function:

bool yap::Game::HandleOnEvent ( const GuiEvent guiEvent)
protectedvirtual

Reimplemented in ycl::Game.

Definition at line 108 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented in ycl::Game.

Definition at line 103 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Game::Init ( )
virtual

Implements yap::IGame.

Definition at line 29 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Game::Launch ( )
virtual

Implements yap::IGame.

Definition at line 34 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Game::SetScreenManager ( IGameScreenManager screenManager)
protected

Definition at line 91 of file Game.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::Game::Stop ( )
protected

Definition at line 81 of file Game.cpp.

Here is the caller graph for this function:


Member Data Documentation

IDrawingContext* yap::Game::drawingContext_
protected

Definition at line 48 of file Game.hpp.

bool yap::Game::isRunning_
private

Definition at line 58 of file Game.hpp.

const String yap::Game::name_
protected

Definition at line 52 of file Game.hpp.

IGameScreenManager* yap::Game::screenManager_
private

Definition at line 56 of file Game.hpp.

Timer yap::Game::timer_
private

Definition at line 59 of file Game.hpp.

sf::RenderWindow* yap::Game::window_
protected

Definition at line 50 of file Game.hpp.


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