Changeset 3216 in orxonox.OLD for orxonox/trunk/src/world.cc
- Timestamp:
- Dec 18, 2004, 5:14:08 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world.cc
r3215 r3216 64 64 { 65 65 this->bPause = false; 66 Orxonox::getInstance()->get_localinput()->enable(true); 66 CommandNode* cn = Orxonox::getInstance()->get_localinput(); 67 cn->addToWorld(this); 68 cn->enable(true); 67 69 } 68 70 … … 78 80 this->localPlayer->destroy(); 79 81 this->localCamera->destroy(); 80 81 82 82 83 WorldEntity* entity = entities->enumerate(); … … 610 611 { 611 612 // localinput 612 Orxonox::getInstance()->get_localinput()->process(); 613 CommandNode* cn = Orxonox::getInstance()->get_localinput(); 614 cn->process(); 613 615 // remoteinput 614 616 } … … 643 645 } 644 646 647 645 648 /** 646 649 \brief compute collision detection … … 651 654 } 652 655 653 /**654 \brief handle keyboard commands that are not meant for WorldEntities655 \param cmd: the command to handle656 \return true if the command was handled by the system or false if it may be passed to the WorldEntities657 */658 bool World::system_command (Command* cmd)659 {660 if( !strcmp( cmd->cmd, "quit"))661 {662 if( !cmd->bUp) this->bQuitOrxonox = true;663 {664 printf("World::system_command() - rescv quit command\n");665 return true;666 }667 }668 return false;669 }670 656 671 657 /** … … 750 736 //return entity; 751 737 } 738 739 740 bool World::command(Command* cmd) 741 { 742 if( !strcmp( cmd->cmd, "quit")) 743 { 744 if( !cmd->bUp) this->stop(); 745 return true; 746 } 747 return false; 748 }
Note: See TracChangeset
for help on using the changeset viewer.