Changeset 9348 for code/trunk/src/modules/gametypes
- Timestamp:
- Aug 30, 2012, 11:08:17 PM (12 years ago)
- Location:
- code/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 .project 1 2 build 2 3 codeblocks 4 dependencies 3 5 vs 4 dependencies
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
code/trunk/src/modules/gametypes/OldRaceCheckPoint.cc
- Property svn:eol-style set to native
r9016 r9348 112 112 const std::string& message = "You have " + multi_cast<std::string>(this->bTimeLimit_) 113 113 + " seconds to reach the check point " + multi_cast<std::string>(this->bCheckpointIndex_+1); 114 const_cast<GametypeInfo*>(gametype->getGametypeInfo())->sendAnnounceMessage(message);114 gametype->getGametypeInfo()->sendAnnounceMessage(message); 115 115 ChatManager::message(message); 116 116 } -
code/trunk/src/modules/gametypes/OldRaceCheckPoint.h
- Property svn:eol-style set to native
-
code/trunk/src/modules/gametypes/OldSpaceRace.cc
- Property svn:eol-style set to native
r9016 r9348 58 58 + "You didn't reach the check point " + multi_cast<std::string>(this->checkpointsReached_+1) 59 59 + " before the time limit. You lose!"; 60 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);60 this->getGametypeInfo()->sendAnnounceMessage(message); 61 61 ChatManager::message(message); 62 62 } … … 68 68 const std::string& message = "You win!! You have reached the last check point after "+ multi_cast<std::string>(s) 69 69 + "." + multi_cast<std::string>(ms) + " seconds."; 70 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);70 this->getGametypeInfo()->sendAnnounceMessage(message); 71 71 ChatManager::message(message); 72 72 /* … … 85 85 86 86 std::string message("The match has started! Reach the check points as quickly as possible!"); 87 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);87 this->getGametypeInfo()->sendAnnounceMessage(message); 88 88 ChatManager::message(message); 89 89 } … … 98 98 + " reached after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) 99 99 + " seconds."; 100 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);100 this->getGametypeInfo()->sendAnnounceMessage(message); 101 101 ChatManager::message(message); 102 102 } -
code/trunk/src/modules/gametypes/OldSpaceRace.h
- Property svn:eol-style set to native
r9016 r9348 59 59 60 60 virtual void newCheckpointReached(); 61 virtual void addBots(unsigned int amount){} //<! overwrite function in order to bypass the addbots command. 62 //<! This is only a temporary solution. Better: create racingBots. 61 63 62 64 inline void setCheckpointsReached(int n) -
code/trunk/src/modules/gametypes/RaceCheckPoint.cc
r9263 r9348 97 97 std::string message = "You have " + multi_cast<std::string>(this->timeLimit_) 98 98 + " seconds to reach the check point " + multi_cast<std::string>(this->checkpointIndex_ + 1); 99 const_cast<GametypeInfo*>(this->getGametype()->getGametypeInfo())->sendAnnounceMessage(message);99 this->getGametype()->getGametypeInfo()->sendAnnounceMessage(message); 100 100 ChatManager::message(message); 101 101 } -
code/trunk/src/modules/gametypes/SpaceRace.cc
r9263 r9348 23 23 * Mauro Salomon 24 24 * Co-authors: 25 * ...25 * Celine Egger 26 26 * 27 27 */ … … 48 48 this->cantMove_ = false; 49 49 this->bTimeIsUp_ = false; 50 this->numberOfBots_ = 0; // quick fix: don't allow default-bots to enter the race 51 // remove this line, if a raceBot has been created. 50 52 } 51 53 … … 70 72 } 71 73 72 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);74 this->getGametypeInfo()->sendAnnounceMessage(message); 73 75 ChatManager::message(message); 74 76 } … … 97 99 98 100 std::string message = "The match has started! Reach the check points as quickly as possible!"; 99 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);101 this->getGametypeInfo()->sendAnnounceMessage(message); 100 102 ChatManager::message(message); 101 103 } … … 112 114 const std::string& message = "Checkpoint " + multi_cast<std::string>(checkpoint->getCheckpointIndex() + 1) 113 115 + " reached after " + multi_cast<std::string>(s) + "." + multi_cast<std::string>(ms) + " seconds."; 114 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message);116 this->getGametypeInfo()->sendAnnounceMessage(message); 115 117 ChatManager::message(message); 116 118 } -
code/trunk/src/modules/gametypes/SpaceRaceManager.cc
- Property svn:eol-style set to native
r9263 r9348 149 149 } 150 150 else 151 151 { 152 152 // adjust the radarvisibility 153 153 gametype->newCheckpointReached(newCheckpoint, player); -
code/trunk/src/modules/gametypes/SpaceRaceManager.h
- Property svn:eol-style set to native
Note: See TracChangeset
for help on using the changeset viewer.