Changeset 3223 for code/branches/core4/src/orxonox/overlays/hud
- Timestamp:
- Jun 23, 2009, 7:28:48 PM (16 years ago)
- Location:
- code/branches/core4/src/orxonox/overlays/hud
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/orxonox/overlays/hud/AnnounceMessage.cc
r3110 r3223 56 56 SUPER(AnnounceMessage, changedOwner); 57 57 58 this->owner_ = dynamic_cast<PlayerInfo*>(this->getOwner());58 this->owner_ = orxonox_cast<PlayerInfo>(this->getOwner()); 59 59 } 60 60 } -
code/branches/core4/src/orxonox/overlays/hud/DeathMessage.cc
r3110 r3223 56 56 SUPER(DeathMessage, changedOwner); 57 57 58 this->owner_ = dynamic_cast<PlayerInfo*>(this->getOwner());58 this->owner_ = orxonox_cast<PlayerInfo>(this->getOwner()); 59 59 } 60 60 } -
code/branches/core4/src/orxonox/overlays/hud/GametypeStatus.cc
r3196 r3223 86 86 SUPER(GametypeStatus, changedOwner); 87 87 88 this->owner_ = dynamic_cast<PlayerInfo*>(this->getOwner());88 this->owner_ = orxonox_cast<PlayerInfo>(this->getOwner()); 89 89 } 90 90 } -
code/branches/core4/src/orxonox/overlays/hud/HUDHealthBar.cc
r3196 r3223 94 94 SUPER(HUDHealthBar, changedOwner); 95 95 96 this->owner_ = dynamic_cast<Pawn*>(this->getOwner());96 this->owner_ = orxonox_cast<Pawn>(this->getOwner()); 97 97 } 98 98 -
code/branches/core4/src/orxonox/overlays/hud/HUDRadar.cc
r3196 r3223 164 164 SUPER(HUDRadar, changedOwner); 165 165 166 this->owner_ = dynamic_cast<Pawn*>(this->getOwner());166 this->owner_ = orxonox_cast<Pawn>(this->getOwner()); 167 167 } 168 168 } -
code/branches/core4/src/orxonox/overlays/hud/HUDSpeedBar.cc
r3196 r3223 65 65 SUPER(HUDSpeedBar, changedOwner); 66 66 67 this->owner_ = dynamic_cast<SpaceShip*>(this->getOwner());67 this->owner_ = orxonox_cast<SpaceShip>(this->getOwner()); 68 68 } 69 69 } -
code/branches/core4/src/orxonox/overlays/hud/HUDTimer.cc
r3196 r3223 68 68 SUPER(HUDTimer, changedOwner); 69 69 70 this->owner_ = dynamic_cast<ControllableEntity*>(this->getOwner());70 this->owner_ = orxonox_cast<ControllableEntity>(this->getOwner()); 71 71 } 72 72 } -
code/branches/core4/src/orxonox/overlays/hud/KillMessage.cc
r3110 r3223 56 56 SUPER(KillMessage, changedOwner); 57 57 58 this->owner_ = dynamic_cast<PlayerInfo*>(this->getOwner());58 this->owner_ = orxonox_cast<PlayerInfo>(this->getOwner()); 59 59 } 60 60 } -
code/branches/core4/src/orxonox/overlays/hud/PongScore.cc
r3196 r3223 133 133 134 134 if (this->getOwner() && this->getOwner()->getGametype()) 135 this->owner_ = dynamic_cast<Pong*>(this->getOwner()->getGametype());135 this->owner_ = orxonox_cast<Pong>(this->getOwner()->getGametype()); 136 136 else 137 137 this->owner_ = 0; -
code/branches/core4/src/orxonox/overlays/hud/TeamBaseMatchScore.cc
r3196 r3223 118 118 119 119 if (this->getOwner() && this->getOwner()->getGametype()) 120 this->owner_ = dynamic_cast<TeamBaseMatch*>(this->getOwner()->getGametype());120 this->owner_ = orxonox_cast<TeamBaseMatch>(this->getOwner()->getGametype()); 121 121 else 122 122 this->owner_ = 0; -
code/branches/core4/src/orxonox/overlays/hud/UnderAttackHealthBar.cc
r3196 r3223 73 73 SUPER(UnderAttackHealthBar, changedOwner); 74 74 75 PlayerInfo* player = dynamic_cast<PlayerInfo*>(this->getOwner());75 PlayerInfo* player = orxonox_cast<PlayerInfo>(this->getOwner()); 76 76 if (player) 77 77 { 78 78 this->owner_ = player; 79 79 80 UnderAttack* ua = dynamic_cast<UnderAttack*>(player->getGametype());80 UnderAttack* ua = orxonox_cast<UnderAttack>(player->getGametype()); 81 81 if (ua) 82 82 {
Note: See TracChangeset
for help on using the changeset viewer.