Changeset 9340 for code/branches/presentation2012merge/src/orxonox
- Timestamp:
- Aug 20, 2012, 4:46:52 PM (12 years ago)
- Location:
- code/branches/presentation2012merge/src/orxonox/gametypes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/orxonox/gametypes/Deathmatch.cc
r8858 r9340 114 114 } 115 115 116 void Deathmatch::playerScored(PlayerInfo* player )116 void Deathmatch::playerScored(PlayerInfo* player, int score) 117 117 { 118 Gametype::playerScored(player );118 Gametype::playerScored(player, score); 119 119 120 120 if (player) -
code/branches/presentation2012merge/src/orxonox/gametypes/Deathmatch.h
r5781 r9340 48 48 49 49 virtual void pawnKilled(Pawn* victim, Pawn* killer = 0); 50 virtual void playerScored(PlayerInfo* player );50 virtual void playerScored(PlayerInfo* player, int score = 1); 51 51 }; 52 52 } -
code/branches/presentation2012merge/src/orxonox/gametypes/Dynamicmatch.cc
r9339 r9340 310 310 if (spaceship) 311 311 { 312 WeakPtr<SpaceShip>* ptr = new WeakPtr<SpaceShip>(spaceship); 313 if(ptr == NULL) 314 return; 312 315 spaceship->addSpeedFactor(5); 313 WeakPtr<SpaceShip>* ptr = new WeakPtr<SpaceShip>(spaceship);314 316 ExecutorPtr executor = createExecutor(createFunctor(&Dynamicmatch::resetSpeedFactor, this)); 315 317 executor->setDefaultValue(0, ptr); … … 490 492 } 491 493 //killers: every 4th player is a killer 492 if ( getPlayerCount()/4 > (int)numberOf[killer])494 if ( static_cast<unsigned int>(getPlayerCount()/4) > numberOf[killer]) 493 495 { 494 496 notEnoughKillers=true; -
code/branches/presentation2012merge/src/orxonox/gametypes/TeamBaseMatch.cc
r8952 r9340 128 128 129 129 // collect Points for killing oppenents 130 void TeamBaseMatch::playerScored(PlayerInfo* player )130 void TeamBaseMatch::playerScored(PlayerInfo* player, int score) 131 131 { 132 132 int teamnr = this->getTeam(player); -
code/branches/presentation2012merge/src/orxonox/gametypes/TeamBaseMatch.h
r5929 r9340 47 47 virtual bool allowPawnDamage(Pawn* victim, Pawn* originator); 48 48 49 virtual void playerScored(PlayerInfo* player );49 virtual void playerScored(PlayerInfo* player, int score = 1); 50 50 virtual void showPoints(); 51 51 virtual void endGame(); -
code/branches/presentation2012merge/src/orxonox/gametypes/TeamDeathmatch.cc
r9286 r9340 113 113 } 114 114 115 void TeamDeathmatch::playerScored(PlayerInfo* player )115 void TeamDeathmatch::playerScored(PlayerInfo* player, int score) 116 116 { 117 TeamGametype::playerScored(player );117 TeamGametype::playerScored(player, score); 118 118 119 119 if (player) -
code/branches/presentation2012merge/src/orxonox/gametypes/TeamDeathmatch.h
r9286 r9340 48 48 49 49 virtual void pawnKilled(Pawn* victim, Pawn* killer = 0); 50 virtual void playerScored(PlayerInfo* player );50 virtual void playerScored(PlayerInfo* player, int score = 1); 51 51 }; 52 52 }
Note: See TracChangeset
for help on using the changeset viewer.