Changeset 2805 for code/branches/gui/src/orxonox
- Timestamp:
- Mar 19, 2009, 4:59:30 PM (16 years ago)
- Location:
- code/branches/gui/src/orxonox
- Files:
-
- 2 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/CMakeLists.txt
r2801 r2805 20 20 SET_SOURCE_FILES(ORXONOX_SRC_FILES 21 21 CameraManager.cc 22 Game.cc 22 23 GraphicsManager.cc 23 24 LevelManager.cc 24 Main.cc25 25 PawnManager.cc 26 26 PlayerManager.cc -
code/branches/gui/src/orxonox/GraphicsManager.h
r2801 r2805 34 34 */ 35 35 36 #ifndef _Graphics Engine_H__37 #define _Graphics Engine_H__36 #ifndef _GraphicsManager_H__ 37 #define _GraphicsManager_H__ 38 38 39 39 #include "OrxonoxPrereqs.h" … … 131 131 } 132 132 133 #endif /* _Graphics Engine_H__ */133 #endif /* _GraphicsManager_H__ */ -
code/branches/gui/src/orxonox/gamestates/GSGraphics.cc
r2801 r2805 75 75 Core::setShowsGraphics(true); 76 76 77 // initialise graphics engine. Doesn't load the render window yet!77 // initialise graphics manager. Doesn't load the render window yet! 78 78 this->graphicsManager_ = new GraphicsManager(); 79 79 this->graphicsManager_->initialise(); -
code/branches/gui/src/orxonox/gamestates/GSRoot.cc
r2800 r2805 80 80 { 81 81 // add console commands 82 FunctorMember<GSRoot>* functor = createFunctor(&GSRoot::exitGame);83 functor->setObject(this);84 this->ccExit_ = createConsoleCommand(functor, "exit");85 CommandExecutor::addConsoleCommandShortcut(this->ccExit_);86 }87 88 {89 // add console commands90 82 FunctorMember01<GameStateBase, const std::string&>* functor = createFunctor(&GameStateBase::requestState); 91 83 functor->setObject(this); … … 114 106 { 115 107 // destroy console commands 116 delete this->ccExit_;117 108 delete this->ccSelectGameState_; 118 109 -
code/branches/gui/src/orxonox/gamestates/GSRoot.h
r2799 r2805 53 53 ~GSRoot(); 54 54 55 void exitGame()56 { requestState("root"); }57 58 55 // this has to be public because proteced triggers a bug in msvc 59 56 // when taking the function address. … … 93 90 94 91 // console commands 95 ConsoleCommand* ccExit_;96 92 ConsoleCommand* ccSelectGameState_; 97 93 ConsoleCommand* ccSetTimeFactor_;
Note: See TracChangeset
for help on using the changeset viewer.