Changeset 7219 for code/branches/consolecommands3/src/orxonox/gametypes
- Timestamp:
- Aug 26, 2010, 12:09:12 AM (14 years ago)
- Location:
- code/branches/consolecommands3/src/orxonox/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/consolecommands3/src/orxonox/gametypes/Gametype.cc
r7204 r7219 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/branches/consolecommands3/src/orxonox/gametypes/Gametype.h
r6417 r7219 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 }
Note: See TracChangeset
for help on using the changeset viewer.