Changeset 8904 for code/branches/gamecontent/src/orxonox
- Timestamp:
- Oct 25, 2011, 10:56:31 PM (13 years ago)
- Location:
- code/branches/gamecontent/src/orxonox
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamecontent/src/orxonox/controllers/WaypointPatrolController.cc
r7184 r8904 42 42 RegisterObject(WaypointPatrolController); 43 43 44 //this->team_ = 0;45 44 this->alertnessradius_ = 500; 46 45 … … 53 52 54 53 XMLPortParam(WaypointPatrolController, "alertnessradius", setAlertnessRadius, getAlertnessRadius, xmlelement, mode).defaultValues(500.0f); 55 // XMLPortParam(WaypointPatrolController, "team", setTeam, getTeam, xmlelement, mode).defaultValues(0);56 54 } 57 55 -
code/branches/gamecontent/src/orxonox/controllers/WaypointPatrolController.h
r7163 r8904 46 46 virtual void tick(float dt); 47 47 48 /* inline void setTeam(int team)49 { this->team_ = team; }50 inline int getTeam() const51 { return this->team_; } */52 53 48 inline void setAlertnessRadius(float radius) 54 49 { this->alertnessradius_ = radius; } … … 59 54 void searchEnemy(); 60 55 61 //int team_;62 56 float alertnessradius_; 63 57 Timer patrolTimer_; -
code/branches/gamecontent/src/orxonox/gametypes/CMakeLists.txt
r8899 r8904 10 10 LastTeamStanding.cc 11 11 TeamGametype.cc 12 Mission.cc 12 13 ) -
code/branches/gamecontent/src/orxonox/gametypes/Gametype.h
r8706 r8904 123 123 { return this->gtinfo_->getHUDTemplate(); } 124 124 125 v oid addBots(unsigned int amount);125 virtual void addBots(unsigned int amount); 126 126 void killBots(unsigned int amount = 0); 127 127 -
code/branches/gamecontent/src/orxonox/gametypes/TeamDeathmatch.h
r5781 r8904 56 56 57 57 int getTeam(PlayerInfo* player); 58 59 58 inline const ColourValue& getTeamColour(int teamnr) const 60 59 { return this->teamcolours_[teamnr]; } -
code/branches/gamecontent/src/orxonox/gametypes/TeamGametype.cc
r8901 r8904 67 67 { 68 68 Gametype::playerEntered(player); 69 70 std::vector<unsigned int> playersperteam(this->teams_, 0); 69 this->findAndSetTeam(player); 70 } 71 72 void TeamGametype::findAndSetTeam(PlayerInfo* player) 73 { 74 std::vector<unsigned int> playersperteam(this->teams_, 0); 71 75 72 76 for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it) … … 86 90 87 91 this->teamnumbers_[player] = minplayersteam; 92 88 93 } 89 94 -
code/branches/gamecontent/src/orxonox/gametypes/TeamGametype.h
r8901 r8904 47 47 48 48 virtual void playerEntered(PlayerInfo* player); 49 virtual void findAndSetTeam(PlayerInfo* player); 49 50 virtual bool playerLeft(PlayerInfo* player); 50 51 -
code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.cc
r8891 r8904 455 455 SUPER(Pawn, changedActivity); 456 456 457 this->setRadarVisibility(this->is Active());457 this->setRadarVisibility(this->isVisible()); 458 458 } 459 459
Note: See TracChangeset
for help on using the changeset viewer.