Changeset 2844 for code/branches/gui/src/orxonox/gamestates/GSLevel.cc
- Timestamp:
- Mar 25, 2009, 5:23:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/orxonox/gamestates/GSLevel.cc
r2817 r2844 47 47 #include "LevelManager.h" 48 48 #include "PlayerManager.h" 49 #include "core/Game.h" 49 50 50 51 namespace orxonox 51 52 { 53 AddGameState(GSLevel, "level"); 54 52 55 SetCommandLineArgument(level, "presentation.oxw").shortcut("l"); 53 56 54 GSLevel::GSLevel( )55 //: GameState(name)56 :keyBinder_(0)57 GSLevel::GSLevel(const std::string& name) 58 : GameState(name) 59 , keyBinder_(0) 57 60 , inputState_(0) 58 61 , radar_(0) … … 65 68 this->ccKeybind_ = 0; 66 69 this->ccTkeybind_ = 0; 67 70 } 71 72 GSLevel::~GSLevel() 73 { 74 } 75 76 void GSLevel::setConfigValues() 77 { 78 SetConfigValue(keyDetectorCallbackCode_, "KeybindBindingStringKeyName="); 79 } 80 81 void GSLevel::activate() 82 { 68 83 setConfigValues(); 69 } 70 71 GSLevel::~GSLevel() 72 { 73 } 74 75 void GSLevel::setConfigValues() 76 { 77 SetConfigValue(keyDetectorCallbackCode_, "KeybindBindingStringKeyName="); 78 } 79 80 void GSLevel::enter() 81 { 84 82 85 if (Core::showsGraphics()) 83 86 { … … 126 129 } 127 130 128 void GSLevel:: leave()131 void GSLevel::deactivate() 129 132 { 130 133 // destroy console commands … … 188 191 } 189 192 190 void GSLevel:: ticked(const Clock& time)191 { 192 // Commented by 1337: Temporarily moved to GSGraphics.193 void GSLevel::update(const Clock& time) 194 { 195 // Note: Temporarily moved to GSGraphics. 193 196 //// Call the scene objects 194 197 //for (ObjectList<Tickable>::iterator it = ObjectList<Tickable>::begin(); it; ++it) … … 233 236 Command string that can be executed by the CommandExecutor 234 237 OR: Internal string "KeybindBindingStringKeyName=" used for the second call to identify 235 the key/button/axis that has been activated. This is configured above in enter().238 the key/button/axis that has been activated. This is configured above in activate(). 236 239 */ 237 240 void GSLevel::keybindInternal(const std::string& command, bool bTemporary)
Note: See TracChangeset
for help on using the changeset viewer.