Public Member Functions | Private Attributes

Game Class Reference

The Engine Core. More...

#include <Game.h>

List of all members.

Public Member Functions

 Game (const std::string &appTitle, const std::string &configFile, const std::string &argv_0)
 ~Game ()
int go (State *state)

Private Attributes

StateManagermStateManager
LuaGuimLuaGui
GuimGui

Detailed Description

The Engine Core.

The Game class is what handles everything from initializing the video subsystems to handling timing and logic issues. All other core classes are contained within the game class.


Constructor & Destructor Documentation

Game::Game ( const std::string &  appTitle,
const std::string &  configFile,
const std::string &  argv_0 
)
Game::~Game (  ) 

Stops all subsystems and cleans everything up.


Member Function Documentation

int Game::go ( State state  ) 

Starts the render loop and enters the SceneManager.

This function returns only after successful termination or an Exception has occured.

Returns 0 upon successful termination. Any exception state will throw an Exception.

Todo:
This should be done in the GUI as part of skin handling.


Member Data Documentation

Gui* Game::mGui [private]

GUI

LuaGui* Game::mLuaGui [private]

Lua Script Interpreter.

State manager


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines