Changeset 1792 for code/trunk/src/orxonox
- Timestamp:
- Sep 16, 2008, 8:45:13 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/gamestates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSRoot.cc
r1764 r1792 33 33 #include <OgreRoot.h> 34 34 35 //#include "util/SubString.h"36 35 #include "util/Exception.h" 37 36 #include "util/Debug.h" … … 42 41 #include "core/ConsoleCommand.h" 43 42 #include "core/CommandLine.h" 43 #include "core/Shell.h" 44 44 #include "core/TclBind.h" 45 45 #include "core/TclThreadManager.h" … … 73 73 , ogreLogger_(0) 74 74 , graphicsEngine_(0) 75 , tclBind_(0) 76 , tclThreadManager_(0) 77 , shell_(0) 75 78 { 76 79 RegisterRootObject(GSRoot); … … 120 123 121 124 // initialise TCL 122 TclBind::getInstance().setDataPath(Settings::getDataPath()); 123 TclThreadManager::getInstance(); 125 this->tclBind_ = new TclBind(Settings::getDataPath()); 126 this->tclThreadManager_ = new TclThreadManager(tclBind_->getTclInterpreter()); 127 128 // create a shell 129 this->shell_ = new Shell(); 124 130 125 131 setupOgre(); … … 149 155 void GSRoot::leave() 150 156 { 157 // TODO: remove and destroy console commands 158 151 159 delete graphicsEngine_; 152 160 … … 160 168 #endif 161 169 170 delete this->shell_; 171 delete this->tclThreadManager_; 172 delete this->tclBind_; 173 162 174 delete settings_; 163 175 164 // TODO: remove and destroy console commands165 176 } 166 177 -
code/trunk/src/orxonox/gamestates/GSRoot.h
r1755 r1792 65 65 Ogre::LogManager* ogreLogger_; 66 66 GraphicsEngine* graphicsEngine_; //!< Interface to Ogre 67 TclBind* tclBind_; 68 TclThreadManager* tclThreadManager_; 69 Shell* shell_; 67 70 68 71 std::string ogreConfigFile_; //!< ogre config file name
Note: See TracChangeset
for help on using the changeset viewer.