Changeset 7284 for code/trunk/src/orxonox/gametypes
- Timestamp:
- Aug 31, 2010, 3:37:40 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/gametypes/Dynamicmatch.cc
r7163 r7284 155 155 spaceship->getEngine()->setSpeedFactor(5); 156 156 WeakPtr<Engine>* ptr = new WeakPtr<Engine>(spaceship->getEngine()); 157 new Timer(10, false, &createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this))->setDefaultValue(0, ptr), true); 157 ExecutorPtr executor = createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this)); 158 executor->setDefaultValue(0, ptr); 159 new Timer(10, false, executor, true); 158 160 } 159 161 } … … 254 256 spaceship->getEngine()->setSpeedFactor(5); 255 257 WeakPtr<Engine>* ptr = new WeakPtr<Engine>(spaceship->getEngine()); 256 new Timer(10, false, &createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this))->setDefaultValue(0, ptr), true); 258 ExecutorPtr executor = createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this)); 259 executor->setDefaultValue(0, ptr); 260 new Timer(10, false, executor, true); 257 261 } 258 262 -
code/trunk/src/orxonox/gametypes/Gametype.cc
r7163 r7284 33 33 #include "core/ConfigValueIncludes.h" 34 34 #include "core/GameMode.h" 35 #include "core/ ConsoleCommand.h"35 #include "core/command/ConsoleCommand.h" 36 36 37 37 #include "infos/PlayerInfo.h" … … 79 79 else 80 80 this->scoreboard_ = 0; 81 82 /* HACK HACK HACK */83 this->hackAddBots_ = createConsoleCommand( createFunctor(&Gametype::addBots, this), "hackAddBots");84 this->hackKillBots_ = createConsoleCommand( createFunctor(&Gametype::killBots, this), "hackKillBots");85 CommandExecutor::addConsoleCommandShortcut( this->hackAddBots_ );86 CommandExecutor::addConsoleCommandShortcut( this->hackKillBots_ );87 /* HACK HACK HACK */88 81 } 89 82 … … 93 86 { 94 87 this->gtinfo_->destroy(); 95 if( this->hackAddBots_ )96 delete this->hackAddBots_;97 if( this->hackKillBots_ )98 delete this->hackKillBots_;99 88 } 100 89 } -
code/trunk/src/orxonox/gametypes/Gametype.h
r6417 r7284 184 184 // Config Values 185 185 std::string scoreboardTemplate_; 186 187 /* HACK HACK HACK */188 ConsoleCommand* hackAddBots_;189 ConsoleCommand* hackKillBots_;190 /* HACK HACK HACK */191 186 }; 192 187 } -
code/trunk/src/orxonox/gametypes/TeamBaseMatch.cc
r5929 r7284 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ Executor.h"32 #include "core/command/Executor.h" 33 33 #include "worldentities/pawns/TeamBaseMatchBase.h" 34 34 #include "infos/PlayerInfo.h"
Note: See TracChangeset
for help on using the changeset viewer.