Changeset 8900 for code/branches/gamecontent/src/modules/pong/Pong.cc
- Timestamp:
- Oct 19, 2011, 11:02:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamecontent/src/modules/pong/Pong.cc
r8895 r8900 37 37 #include "core/EventIncludes.h" 38 38 #include "core/command/Executor.h" 39 #include "core/ConfigValueIncludes.h" 39 40 40 41 #include "gamestates/GSLevel.h" … … 75 76 // Set the type of Bots for this particular Gametype. 76 77 this->botclass_ = Class(PongBot); 77 this->scoreLimit_ = 3; //TODO: 21 78 this->scoreLimit_ = 10; 79 this->setConfigValues(); 78 80 } 79 81 … … 291 293 std::string message(name1 + " has won!"); 292 294 ChatManager::message(message); 295 this->tick(0); 293 296 this->end(); 294 297 } … … 298 301 std::string message2(name2 + " has won!"); 299 302 ChatManager::message(message2); 303 this->tick(0); 300 304 this->end(); 301 305 } … … 342 346 return 0; 343 347 } 348 349 /** 350 @brief 351 Make scoreLimit_ configurable e.g. in the menu. 352 */ 353 void Pong::setConfigValues() 354 { 355 SetConfigValue(scoreLimit_, 10).description("The player first reaching those points wins."); 356 } 344 357 }
Note: See TracChangeset
for help on using the changeset viewer.