FYP  1.0.0
Final Year Project -- Alexander Meuer
Game Class Reference
Collaboration diagram for Game:
Collaboration graph

Public Member Functions

 Game ()
 Sets up the game. Takes no arguements.
 
int run ()
 Begins the game. More...
 

Static Public Member Functions

static void close ()
 
static PlayerProfilegetPlayerProfile ()
 Gets the active player's profile. The calling class does not obtain ownership. More...
 

Private Member Functions

void handleEvent (sf::Event &event)
 

Private Attributes

Renderer mRenderer
 Threaded Renderer with fixed timestep.
 

Static Private Attributes

static bool mRun
 
static bool mPaused
 
static std::unique_ptr< PlayerProfilemPlayerProfile
 

Member Function Documentation

static PlayerProfile& Game::getPlayerProfile ( )
static

Gets the active player's profile. The calling class does not obtain ownership.

Returns
A reference to the player's profile. Ownership is not given.
int Game::run ( )

Begins the game.

Remarks
Intended usage: in main(): return game.run();
Returns
EXIT_SUCCESS (0)

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