Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4442 in orxonox.OLD for orxonox/trunk/src/orxonox.cc


Ignore:
Timestamp:
Jun 1, 2005, 10:07:53 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: command node removed from source files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/orxonox.cc

    r4408 r4442  
    3030
    3131#include "world.h"
    32 #include "command_node.h"
    3332#include "ini_parser.h"
    3433#include "game_loader.h"
     
    5857
    5958  this->world = NULL;
    60   this->localinput = NULL;
    6159  this->resourceManager = NULL;
    6260  this->objectManager = NULL;
     61  this->eventHandler = NULL;
    6362
    6463  this->argc = 0;
     
    7473  Orxonox::singletonRef = NULL;
    7574  if( world != NULL) delete world;
    76   if( localinput != NULL) delete localinput;
    7775  delete GraphicsEngine::getInstance(); // deleting the Graphics
    7876  delete ResourceManager::getInstance(); // deletes the Resource Manager
     
    164162int Orxonox::initInput()
    165163{
    166   // create localinput
    167   localinput = new CommandNode(configfilename);
    168 
    169164  this->eventHandler = EventHandler::getInstance();
    170165  this->eventHandler->init();
     
    301296 
    302297
    303 /**
    304    \brief handle keyboard commands that are not meant for WorldEntities
    305    \param cmd: the command to handle
    306    \return true if the command was handled by the system or false if it may be passed to the WorldEntities
    307 */
    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 
    321298
    322299void Orxonox::process(const Event &event)
    323300{}
    324301
    325 /**
    326    \brief retrieve a pointer to the local CommandNode
    327    \return a pointer to localinput
    328 */
    329 CommandNode* Orxonox::getLocalInput()
    330 {
    331   return localinput;
    332 }
    333302
    334303
Note: See TracChangeset for help on using the changeset viewer.