Changeset 3049 for code/trunk/src/orxonox/objects/gametypes
- Timestamp:
- May 25, 2009, 3:26:43 AM (15 years ago)
- Location:
- code/trunk/src/orxonox/objects/gametypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.cc
r3033 r3049 164 164 if (pawn) 165 165 { 166 pawn->setRadarObjectColour(this->teamcolours_[it_player->second]); 167 166 168 std::set<WorldEntity*> pawnAttachments = pawn->getAttachedObjects(); 167 169 for (std::set<WorldEntity*>::iterator it = pawnAttachments.begin(); it != pawnAttachments.end(); ++it) -
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.h
r3033 r3049 55 55 virtual void playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn); 56 56 57 int getTeam(PlayerInfo* player); 58 57 59 inline const ColourValue& getTeamColour(int teamnr) const 58 60 { return this->teamcolours_[teamnr]; } … … 61 63 virtual SpawnPoint* getBestSpawnPoint(PlayerInfo* player) const; 62 64 bool pawnsAreInTheSameTeam(Pawn* pawn1, Pawn* pawn2); 63 int getTeam(PlayerInfo* player);64 65 65 66 std::map<PlayerInfo*, int> teamnumbers_;
Note: See TracChangeset
for help on using the changeset viewer.