Changeset 2904
- Timestamp:
- Apr 6, 2009, 4:50:31 PM (16 years ago)
- Location:
- code/trunk/src/orxonox/objects
- Files:
-
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.cc
r2902 r2904 189 189 return false; 190 190 } 191 192 int TeamDeathmatch::getTeam(PlayerInfo* player)193 {194 std::map<PlayerInfo*, int>::const_iterator it_player = this->teamnumbers_.find(player);195 if (it_player != this->teamnumbers_.end())196 return it_player->second;197 else198 return -1;199 }200 191 } -
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.h
r2902 r2904 58 58 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const; 59 59 bool pawnsAreInTheSameTeam(Pawn* pawn1, Pawn* pawn2); 60 int getTeam(PlayerInfo* player);61 60 62 61 std::map<PlayerInfo*, int> teamnumbers_; -
code/trunk/src/orxonox/objects/worldentities/pawns/Pawn.cc
r2902 r2904 198 198 void Pawn::death() 199 199 { 200 this->setHealth(1);201 200 if (this->getGametype() && this->getGametype()->allowPawnDeath(this, this->lastHitOriginator_)) 202 201 { … … 215 214 this->deatheffect(); 216 215 } 216 else 217 this->setHealth(1); 217 218 } 218 219
Note: See TracChangeset
for help on using the changeset viewer.