Changeset 4442 in orxonox.OLD for orxonox/trunk/src/orxonox.cc
- Timestamp:
- Jun 1, 2005, 10:07:53 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/orxonox.cc
r4408 r4442 30 30 31 31 #include "world.h" 32 #include "command_node.h"33 32 #include "ini_parser.h" 34 33 #include "game_loader.h" … … 58 57 59 58 this->world = NULL; 60 this->localinput = NULL;61 59 this->resourceManager = NULL; 62 60 this->objectManager = NULL; 61 this->eventHandler = NULL; 63 62 64 63 this->argc = 0; … … 74 73 Orxonox::singletonRef = NULL; 75 74 if( world != NULL) delete world; 76 if( localinput != NULL) delete localinput;77 75 delete GraphicsEngine::getInstance(); // deleting the Graphics 78 76 delete ResourceManager::getInstance(); // deletes the Resource Manager … … 164 162 int Orxonox::initInput() 165 163 { 166 // create localinput167 localinput = new CommandNode(configfilename);168 169 164 this->eventHandler = EventHandler::getInstance(); 170 165 this->eventHandler->init(); … … 301 296 302 297 303 /**304 \brief handle keyboard commands that are not meant for WorldEntities305 \param cmd: the command to handle306 \return true if the command was handled by the system or false if it may be passed to the WorldEntities307 */308 bool Orxonox::systemCommand(Command* cmd)309 {310 /*311 if( !strcmp( cmd->cmd, "quit"))312 {313 if( !cmd->bUp) this->gameLoader->stop();314 return true;315 }316 return false;317 */318 return false;319 }320 321 298 322 299 void Orxonox::process(const Event &event) 323 300 {} 324 301 325 /**326 \brief retrieve a pointer to the local CommandNode327 \return a pointer to localinput328 */329 CommandNode* Orxonox::getLocalInput()330 {331 return localinput;332 }333 302 334 303
Note: See TracChangeset
for help on using the changeset viewer.