Changeset 5806 for code/branches/core5/src/modules
- Timestamp:
- Sep 27, 2009, 4:13:13 AM (15 years ago)
- Location:
- code/branches/core5/src/modules
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/modules/gamestates/GSLevel.cc
r5805 r5806 52 52 #include "LevelManager.h" 53 53 #include "PlayerManager.h" 54 #include "infos/HumanPlayer.h" 54 55 55 56 namespace orxonox … … 242 243 void GSLevel::unloadLevel() 243 244 { 245 for (ObjectList<HumanPlayer>::iterator it = ObjectList<HumanPlayer>::begin(); it; ++it) 246 it->setGametype(0); 247 244 248 Loader::unload(startFile_s); 245 249 -
code/branches/core5/src/modules/objects/triggers/CheckPoint.cc
r5738 r5806 85 85 DistanceTrigger::triggered(bIsTriggered); 86 86 87 Asteroids* gametype = orxonox_cast<Asteroids*>(this->getGametype() );87 Asteroids* gametype = orxonox_cast<Asteroids*>(this->getGametype().get()); 88 88 if (gametype) 89 89 { -
code/branches/core5/src/modules/overlays/hud/TeamBaseMatchScore.cc
r5738 r5806 118 118 119 119 if (this->getOwner() && this->getOwner()->getGametype()) 120 this->owner_ = orxonox_cast<TeamBaseMatch*>(this->getOwner()->getGametype() );120 this->owner_ = orxonox_cast<TeamBaseMatch*>(this->getOwner()->getGametype().get()); 121 121 else 122 122 this->owner_ = 0; -
code/branches/core5/src/modules/overlays/hud/UnderAttackHealthBar.cc
r5800 r5806 78 78 this->owner_ = player; 79 79 80 UnderAttack* ua = orxonox_cast<UnderAttack*>(player->getGametype() );80 UnderAttack* ua = orxonox_cast<UnderAttack*>(player->getGametype().get()); 81 81 if (ua) 82 82 { -
code/branches/core5/src/modules/pong/Pong.cc
r5800 r5806 158 158 159 159 if (player) 160 this->gtinfo_ .sendAnnounceMessage(player->getName() + " scored");160 this->gtinfo_->sendAnnounceMessage(player->getName() + " scored"); 161 161 } 162 162 -
code/branches/core5/src/modules/pong/PongCenterpoint.cc
r5738 r5806 73 73 if (this->getGametype() && this->getGametype()->isA(Class(Pong))) 74 74 { 75 Pong* pong_gametype = orxonox_cast<Pong*>(this->getGametype() );75 Pong* pong_gametype = orxonox_cast<Pong*>(this->getGametype().get()); 76 76 pong_gametype->setCenterpoint(this); 77 77 } -
code/branches/core5/src/modules/pong/PongScore.cc
r5738 r5806 133 133 134 134 if (this->getOwner() && this->getOwner()->getGametype()) 135 this->owner_ = orxonox_cast<Pong*>(this->getOwner()->getGametype() );135 this->owner_ = orxonox_cast<Pong*>(this->getOwner()->getGametype().get()); 136 136 else 137 137 this->owner_ = 0;
Note: See TracChangeset
for help on using the changeset viewer.