Changeset 3223 for code/branches/core4/src/orxonox/objects/gametypes
- Timestamp:
- Jun 23, 2009, 7:28:48 PM (15 years ago)
- Location:
- code/branches/core4/src/orxonox/objects/gametypes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/objects/gametypes/Pong.cc
r3196 r3223 144 144 if (player && player->getController() && player->getController()->isA(Class(PongAI))) 145 145 { 146 PongAI* ai = dynamic_cast<PongAI*>(player->getController());146 PongAI* ai = orxonox_cast<PongAI>(player->getController()); 147 147 ai->setPongBall(this->ball_); 148 148 } -
code/branches/core4/src/orxonox/objects/gametypes/TeamBaseMatch.cc
r3196 r3223 54 54 bool TeamBaseMatch::allowPawnDeath(Pawn* victim, Pawn* originator) 55 55 { 56 TeamBaseMatchBase* base = dynamic_cast<TeamBaseMatchBase*>(victim);56 TeamBaseMatchBase* base = orxonox_cast<TeamBaseMatchBase>(victim); 57 57 if (base) 58 58 { … … 87 87 bool TeamBaseMatch::allowPawnDamage(Pawn* victim, Pawn* originator) 88 88 { 89 TeamBaseMatchBase* base = dynamic_cast<TeamBaseMatchBase*>(victim);89 TeamBaseMatchBase* base = orxonox_cast<TeamBaseMatchBase>(victim); 90 90 if (base) 91 91 { -
code/branches/core4/src/orxonox/objects/gametypes/TeamDeathmatch.cc
r3196 r3223 126 126 if ((*it)->isA(Class(TeamSpawnPoint))) 127 127 { 128 TeamSpawnPoint* tsp = dynamic_cast<TeamSpawnPoint*>(*it);128 TeamSpawnPoint* tsp = orxonox_cast<TeamSpawnPoint>(*it); 129 129 if (tsp && (int)tsp->getTeamNumber() != desiredTeamNr) 130 130 { … … 171 171 if ((*it)->isA(Class(TeamColourable))) 172 172 { 173 TeamColourable* tc = dynamic_cast<TeamColourable*>(*it);173 TeamColourable* tc = orxonox_cast<TeamColourable>(*it); 174 174 tc->setTeamColour(this->teamcolours_[it_player->second]); 175 175 }
Note: See TracChangeset
for help on using the changeset viewer.