- Timestamp:
- Dec 7, 2011, 2:38:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/spaceraceTwo/src/modules/gametypes/SpaceRace.cc
r8954 r8959 29 29 #include "SpaceRace.h" 30 30 31 //#include "SpaceRaceManager.h" 32 31 33 #include "items/Engine.h" 32 34 … … 54 56 55 57 for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) 56 {this->checkpointReached_[it->first]= 0;}58 {this->checkpointReached_[it->first]=-1;} 57 59 58 60 … … 140 142 141 143 } 142 143 144 } 145 146 void SpaceRace::setV(SpaceRaceManager* m){ 147 /*Vector3 v =Vector3(0,0,0); 144 // for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) 145 // {if(this->getCheckpointReached(it->first)==-1) orxout()<<"index -1"<<endl;} 146 147 } 148 149 void SpaceRace::setV(SpaceRaceManager* m){/* 150 Vector3 v =Vector3(0,0,0); 148 151 int j=0; 149 152 for (std::map<PlayerInfo*, Player>::iterator it = this->players_.begin(); it != this->players_.end(); ++it) … … 161 164 162 165 void SpaceRace::newCheckpointReached(SpaceRaceManager* p, int index,PlayerInfo* pl) 163 { 166 {/* 164 167 this->checkpointReached_[pl]=index; 165 168 this->clock_.capture(); … … 171 174 const_cast<GametypeInfo*>(this->getGametypeInfo())->sendAnnounceMessage(message); 172 175 ChatManager::message(message); 173 176 */ 174 177 175 178 } … … 194 197 void SpaceRace::playerEntered(PlayerInfo* player){ 195 198 Gametype::playerEntered(player); 196 //this->checkpointReached_[player]=0; 199 200 this->checkpointReached_[player]=-1; 197 201 //this->playersAlive_++; 198 202 }
Note: See TracChangeset
for help on using the changeset viewer.