Changeset 10624 for code/trunk/src/modules/gametypes
- Timestamp:
- Oct 4, 2015, 9:12:21 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/modules/gametypes/CMakeLists.txt
r9526 r10624 10 10 11 11 ORXONOX_ADD_LIBRARY(gametypes 12 MODULE12 PLUGIN 13 13 FIND_HEADER_FILES 14 14 TOLUA_FILES -
code/trunk/src/modules/gametypes/OldRaceCheckPoint.cc
r9667 r10624 61 61 SUPER(OldRaceCheckPoint, tick, dt); 62 62 63 OldSpaceRace* gametype = orxonox_cast<OldSpaceRace*>(this->getGametype() .get());63 OldSpaceRace* gametype = orxonox_cast<OldSpaceRace*>(this->getGametype()); 64 64 assert(gametype); 65 65 if (this->getCheckpointIndex() == gametype->getCheckpointsReached()) … … 82 82 DistanceTrigger::triggered(bIsTriggered); 83 83 84 OldSpaceRace* gametype = orxonox_cast<OldSpaceRace*>(this->getGametype() .get());84 OldSpaceRace* gametype = orxonox_cast<OldSpaceRace*>(this->getGametype()); 85 85 if (gametype && this->getCheckpointIndex() == gametype->getCheckpointsReached() && bIsTriggered) 86 86 { … … 107 107 if (this->bTimeLimit_ != 0) 108 108 { 109 OldSpaceRace* gametype = orxonox_cast<OldSpaceRace*>(this->getGametype() .get());109 OldSpaceRace* gametype = orxonox_cast<OldSpaceRace*>(this->getGametype()); 110 110 if (gametype) 111 111 { -
code/trunk/src/modules/gametypes/SpaceRaceManager.cc
r9667 r10624 46 46 { 47 47 RegisterObject(SpaceRaceManager); 48 this->race_ = orxonox_cast<SpaceRace*>(this->getGametype() .get());48 this->race_ = orxonox_cast<SpaceRace*>(this->getGametype()); 49 49 assert(race_); 50 50 //amountOfPlayers=(race_->getPlayers()).size(); … … 139 139 void SpaceRaceManager::checkpointReached(RaceCheckPoint* newCheckpoint, PlayerInfo* player) 140 140 { 141 SpaceRace* gametype = orxonox_cast<SpaceRace*>(this->getGametype() .get());141 SpaceRace* gametype = orxonox_cast<SpaceRace*>(this->getGametype()); 142 142 assert(gametype); 143 143 if (!gametype)
Note: See TracChangeset
for help on using the changeset viewer.