Engine Class Reference

#include <engine.h>

List of all members.


Detailed Description

Game engine.

Actually hardly does anything anymore except keeping track of the current map.

Definition at line 33 of file engine.h.


Public Member Functions

 Engine ()
 Constructor.
 ~Engine ()
 Destructor.
MapgetCurrentMap ()
 Returns the currently active map.
const std::string & getCurrentMapName ()
bool changeMap (const std::string &mapName)
 Sets the currently active map.
void logic ()
 Performs engine logic.

Private Attributes

MapmCurrentMap
std::string mMapName

Constructor & Destructor Documentation

Engine::Engine (  ) 

Constructor.

Definition at line 45 of file engine.cpp.

Engine::~Engine (  ) 

Destructor.

Definition at line 50 of file engine.cpp.


Member Function Documentation

Map* Engine::getCurrentMap (  )  [inline]

Returns the currently active map.

Definition at line 49 of file engine.h.

const std::string& Engine::getCurrentMapName (  )  [inline]

Definition at line 51 of file engine.h.

bool Engine::changeMap ( const std::string &  mapName  ) 

Sets the currently active map.

Definition at line 55 of file engine.cpp.

void Engine::logic (  ) 

Performs engine logic.

This method is called 100 times per second.

Definition at line 147 of file engine.cpp.


Member Data Documentation

Definition at line 64 of file engine.h.

std::string Engine::mMapName [private]

Definition at line 65 of file engine.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5