Changeset 1670 for code/branches/gui/src/orxonox/gamestates/GSRoot.cc
- Timestamp:
- Aug 26, 2008, 4:26:04 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSRoot.cc
r1664 r1670 52 52 , settings_(0) 53 53 , graphicsEngine_(0) 54 , bExit_(false) 54 55 { 55 56 } … … 101 102 102 103 std::string dataPath; 103 CommandLine::get CommandLineValue("dataPath", &dataPath);104 CommandLine::getValue("dataPath", &dataPath); 104 105 if (dataPath != "") 105 106 { … … 122 123 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(functor, "loadGame")); 123 124 124 requestState("gui"); 125 // add console commands 126 functor = createFunctor(&GSRoot::exitGame); 127 functor->setObject(this); 128 CommandExecutor::addConsoleCommandShortcut(createConsoleCommand(functor, "exit")); 125 129 } 126 130 … … 128 132 { 129 133 delete graphicsEngine_; 134 delete settings_; 130 135 131 delete settings_;136 // TODO: remove and destroy console commands 132 137 } 133 138 134 bool GSRoot::tick(float dt)139 void GSRoot::ticked(float dt) 135 140 { 136 if (this->getActiveChild()) 137 this->getActiveChild()->tick(dt); 138 return true; 141 this->tickChild(dt); 139 142 } 140 143
Note: See TracChangeset
for help on using the changeset viewer.