- Timestamp:
- Jan 30, 2007, 8:12:15 PM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ai/ai_engine.h
r10376 r10513 7 7 8 8 9 class AIEngine{ 10 public: 11 ~AIEngine(){} 9 class AIEngine 10 { 11 public: 12 ~AIEngine() { singletonRef = NULL; } 12 13 13 14 static AIEngine* getInstance() { if( singletonRef == NULL) singletonRef = new AIEngine(); return singletonRef; } 14 15 15 16 17 16 void tick(float dt); 17 void addAI(int teamNumber, int swarmNumber, WorldEntity* npc, float maxSpeed, float attackDistance); 18 void removeAI(int teamNumber, int swarmNumber, WorldEntity* npc); 18 19 19 private: 20 AIEngine(){} 21 static AIEngine* singletonRef; 22 std::map<int,AITeam*> teams; 20 private: 21 AIEngine() 22 {} 23 static AIEngine* singletonRef; 24 std::map<int,AITeam*> teams; 23 25 }; 24 26 -
trunk/src/story_entities/game_world_data.cc
r10428 r10513 52 52 #include "network_manager.h" 53 53 #include "physics_engine.h" 54 #include "ai_engine.h" 54 55 55 56 #include "glmenu_imagescreen.h" … … 105 106 //State::setCameraman(camMan); 106 107 LightManager::getInstance(); 108 AIEngine::getInstance(); 107 109 108 110 // GraphicsEngine::getInstance()->displayFPS(true); … … 130 132 this->setName(string.c_str()); 131 133 134 132 135 this->loadGUI(root); 133 136 this->loadWorldEntities(root); … … 148 151 this->unloadScene(); 149 152 this->unloadCameras(); 153 154 // killl ai engine 155 delete AIEngine::getInstance(); 150 156 151 157 return ErrorMessage(); -
trunk/src/world_entities/mount_point.cc
r10491 r10513 168 168 if( obj->isA( WorldEntity::staticClassID())) 169 169 { 170 PRINTF(0)("Mount Point created a %s\n", obj->getCName()); 170 171 // cast down the object to WE 171 172 this->_mount = dynamic_cast<WorldEntity*>(obj);
Note: See TracChangeset
for help on using the changeset viewer.