Changeset 2821 for code/branches
- 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
-
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 ) -
code/branches/miniprojects/src/orxonox/objects/gametypes/TeamDeathmatch.cc
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/code/branches/buildsystem/src/orxonox/objects/gametypes/TeamGametype.cc 1874-2276,2278-2400 /code/branches/buildsystem2/src/orxonox/objects/gametypes/TeamGametype.cc 2506-2658 /code/branches/buildsystem3/src/orxonox/objects/gametypes/TeamGametype.cc 2662-2708 /code/branches/ceguilua/src/orxonox/objects/gametypes/TeamGametype.cc 1802-1808 /code/branches/core3/src/orxonox/objects/gametypes/TeamGametype.cc 1572-1739 /code/branches/gcc43/src/orxonox/objects/gametypes/TeamGametype.cc 1580 /code/branches/gui/src/orxonox/objects/gametypes/TeamGametype.cc 1635-1723 /code/branches/input/src/orxonox/objects/gametypes/TeamGametype.cc 1629-1636 /code/branches/lodfinal/src/orxonox/objects/gametypes/TeamGametype.cc 2372-2411 /code/branches/network/src/orxonox/objects/gametypes/TeamGametype.cc 2356 /code/branches/network64/src/orxonox/objects/gametypes/TeamGametype.cc 2210-2355 /code/branches/objecthierarchy/src/orxonox/objects/gametypes/TeamGametype.cc 1911-2085,2100,2110-2169 /code/branches/objecthierarchy2/src/orxonox/objects/gametypes/TeamGametype.cc 2171-2479 /code/branches/overlay/src/orxonox/objects/gametypes/TeamGametype.cc 2117-2385 /code/branches/physics/src/orxonox/objects/gametypes/TeamGametype.cc 1912-2055,2107-2439 /code/branches/physics_merge/src/orxonox/objects/gametypes/TeamGametype.cc 2436-2457 /code/branches/pickups/src/orxonox/objects/gametypes/TeamGametype.cc 1926-2086,2127 /code/branches/pickups2/src/orxonox/objects/gametypes/TeamGametype.cc 2107-2497 /code/branches/presentation/src/orxonox/objects/gametypes/TeamGametype.cc 2369-2652,2654-2660 /code/branches/questsystem/src/orxonox/objects/gametypes/TeamGametype.cc 1894-2088 /code/branches/questsystem2/src/orxonox/objects/gametypes/TeamGametype.cc 2107-2259 /code/branches/script_trigger/src/orxonox/objects/gametypes/TeamGametype.cc 1295-1953,1955 /code/branches/weapon/src/orxonox/objects/gametypes/TeamGametype.cc 1925-2094 /code/branches/weapon2/src/orxonox/objects/gametypes/TeamGametype.cc 2107-2488
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)
-
code/branches/miniprojects/src/orxonox/objects/gametypes/TeamDeathmatch.h
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/code/branches/buildsystem/src/orxonox/objects/gametypes/TeamGametype.h 1874-2276,2278-2400 /code/branches/buildsystem2/src/orxonox/objects/gametypes/TeamGametype.h 2506-2658 /code/branches/buildsystem3/src/orxonox/objects/gametypes/TeamGametype.h 2662-2708 /code/branches/ceguilua/src/orxonox/objects/gametypes/TeamGametype.h 1802-1808 /code/branches/core3/src/orxonox/objects/gametypes/TeamGametype.h 1572-1739 /code/branches/gcc43/src/orxonox/objects/gametypes/TeamGametype.h 1580 /code/branches/gui/src/orxonox/objects/gametypes/TeamGametype.h 1635-1723 /code/branches/input/src/orxonox/objects/gametypes/TeamGametype.h 1629-1636 /code/branches/lodfinal/src/orxonox/objects/gametypes/TeamGametype.h 2372-2411 /code/branches/network/src/orxonox/objects/gametypes/TeamGametype.h 2356 /code/branches/network64/src/orxonox/objects/gametypes/TeamGametype.h 2210-2355 /code/branches/objecthierarchy/src/orxonox/objects/gametypes/TeamGametype.h 1911-2085,2100,2110-2169 /code/branches/objecthierarchy2/src/orxonox/objects/gametypes/TeamGametype.h 2171-2479 /code/branches/overlay/src/orxonox/objects/gametypes/TeamGametype.h 2117-2385 /code/branches/physics/src/orxonox/objects/gametypes/TeamGametype.h 1912-2055,2107-2439 /code/branches/physics_merge/src/orxonox/objects/gametypes/TeamGametype.h 2436-2457 /code/branches/pickups/src/orxonox/objects/gametypes/TeamGametype.h 1926-2086,2127 /code/branches/pickups2/src/orxonox/objects/gametypes/TeamGametype.h 2107-2497 /code/branches/presentation/src/orxonox/objects/gametypes/TeamGametype.h 2369-2652,2654-2660 /code/branches/questsystem/src/orxonox/objects/gametypes/TeamGametype.h 1894-2088 /code/branches/questsystem2/src/orxonox/objects/gametypes/TeamGametype.h 2107-2259 /code/branches/script_trigger/src/orxonox/objects/gametypes/TeamGametype.h 1295-1953,1955 /code/branches/weapon/src/orxonox/objects/gametypes/TeamGametype.h 1925-2094 /code/branches/weapon2/src/orxonox/objects/gametypes/TeamGametype.h 2107-2488
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.