To create the test database:
[asgard.git] / src / GameEngine.cpp
blob40f591c6f3d8eac73dd65d8d331288552475b40b
1 #include "GameEngine.h"
3 GameEngine* GameEngine::instance = NULL;
6 GameEngine* GameEngine::getInstance()
8 if(instance == NULL) instance = new GameEngine();
9 return instance;
13 GameEngine::GameEngine()
18 void GameEngine::loadGame()
22 void GameEngine::loadVisibleBoxes()
24 Database* db = Database::getInstance();
25 db->determineVisibleBoxes(this->currentPosition,this->visibleBoxes,VISIBLE_BOUNDING_BOXES);
27 for (int slot = 0; slot < VISIBLE_BOUNDING_BOXES; slot++)
28 db->loadBoundingBox(this->visibleBoxes[slot]);
32 void GameEngine::addMapObject(MapObject* object)
37 void GameEngine::removeBoundingBoxObjects(int boundingBoxID)