Changeset 2821
- Timestamp:
- Mar 23, 2009, 1:04:52 AM (16 years ago)
- Location:
- code/branches/miniprojects/src/orxonox/objects/gametypes
- Files:
-
- 1 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified code/branches/miniprojects/src/orxonox/objects/gametypes/CMakeLists.txt ¶
r2820 r2821 2 2 Gametype.cc 3 3 Deathmatch.cc 4 Team Gametype.cc4 TeamDeathmatch.cc 5 5 ) -
TabularUnified code/branches/miniprojects/src/orxonox/objects/gametypes/TeamDeathmatch.cc ¶
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
r2820 r2821 28 28 29 29 #include "OrxonoxStableHeaders.h" 30 #include "Team Gametype.h"30 #include "TeamDeathmatch.h" 31 31 32 32 #include "core/CoreIncludes.h" … … 37 37 namespace orxonox 38 38 { 39 CreateUnloadableFactory(Team Gametype);39 CreateUnloadableFactory(TeamDeathmatch); 40 40 41 Team Gametype::TeamGametype(BaseObject* creator) : Deathmatch(creator)41 TeamDeathmatch::TeamDeathmatch(BaseObject* creator) : Deathmatch(creator) 42 42 { 43 RegisterObject(Team Gametype);43 RegisterObject(TeamDeathmatch); 44 44 45 45 this->teams_ = 2; … … 48 48 } 49 49 50 void Team Gametype::setConfigValues()50 void TeamDeathmatch::setConfigValues() 51 51 { 52 52 SetConfigValue(teams_, 2); … … 64 64 } 65 65 66 void Team Gametype::playerEntered(PlayerInfo* player)66 void TeamDeathmatch::playerEntered(PlayerInfo* player) 67 67 { 68 68 Deathmatch::playerEntered(player); … … 88 88 } 89 89 90 bool Team Gametype::playerLeft(PlayerInfo* player)90 bool TeamDeathmatch::playerLeft(PlayerInfo* player) 91 91 { 92 92 bool valid_player = Deathmatch::playerLeft(player); … … 98 98 } 99 99 100 bool Team Gametype::allowPawnHit(Pawn* victim, Pawn* originator)100 bool TeamDeathmatch::allowPawnHit(Pawn* victim, Pawn* originator) 101 101 { 102 102 return (!this->pawnsAreInTheSameTeam(victim, originator)); 103 103 } 104 104 105 bool Team Gametype::allowPawnDamage(Pawn* victim, Pawn* originator)105 bool TeamDeathmatch::allowPawnDamage(Pawn* victim, Pawn* originator) 106 106 { 107 107 return (!this->pawnsAreInTheSameTeam(victim, originator)); 108 108 } 109 109 110 bool Team Gametype::allowPawnDeath(Pawn* victim, Pawn* originator)110 bool TeamDeathmatch::allowPawnDeath(Pawn* victim, Pawn* originator) 111 111 { 112 112 return (!this->pawnsAreInTheSameTeam(victim, originator)); 113 113 } 114 114 115 SpawnPoint* Team Gametype::getBestSpawnPoint(PlayerInfo* player) const115 SpawnPoint* TeamDeathmatch::getBestSpawnPoint(PlayerInfo* player) const 116 116 { 117 117 int desiredTeamNr = -1; … … 153 153 } 154 154 155 void Team Gametype::playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn)155 void TeamDeathmatch::playerStartsControllingPawn(PlayerInfo* player, Pawn* pawn) 156 156 { 157 157 if (!player) … … 177 177 } 178 178 179 bool Team Gametype::pawnsAreInTheSameTeam(Pawn* pawn1, Pawn* pawn2)179 bool TeamDeathmatch::pawnsAreInTheSameTeam(Pawn* pawn1, Pawn* pawn2) 180 180 { 181 181 if (pawn1 && pawn2) -
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
TabularUnified code/branches/miniprojects/src/orxonox/objects/gametypes/TeamDeathmatch.h ¶
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
r2820 r2821 27 27 */ 28 28 29 #ifndef _Team Gametype_H__30 #define _Team Gametype_H__29 #ifndef _TeamDeathmatch_H__ 30 #define _TeamDeathmatch_H__ 31 31 32 32 #include "OrxonoxPrereqs.h" … … 38 38 namespace orxonox 39 39 { 40 class _OrxonoxExport Team Gametype: public Deathmatch40 class _OrxonoxExport TeamDeathmatch : public Deathmatch 41 41 { 42 42 public: 43 Team Gametype(BaseObject* creator);44 virtual ~Team Gametype() {}43 TeamDeathmatch(BaseObject* creator); 44 virtual ~TeamDeathmatch() {} 45 45 46 46 void setConfigValues(); … … 65 65 } 66 66 67 #endif /* _Team Gametype_H__ */67 #endif /* _TeamDeathmatch_H__ */ -
Property
svn:mergeinfo
set to
(toggle deleted branches)
Note: See TracChangeset
for help on using the changeset viewer.