Changeset 10765 for code/branches/cpp11_v2/src/modules/dodgerace
- Timestamp:
- Nov 4, 2015, 10:25:42 PM (10 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/dodgerace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRace.cc
r10624 r10765 67 67 { 68 68 level++; 69 if (getPlayer() != NULL)69 if (getPlayer() != nullptr) 70 70 { 71 71 for (int i = 0; i < 7; i++) … … 85 85 void DodgeRace::tick(float dt) 86 86 { 87 if (getPlayer() != NULL)87 if (getPlayer() != nullptr) 88 88 { 89 89 currentPosition = getPlayer()->getWorldPosition().x; … … 134 134 DodgeRaceShip* DodgeRace::getPlayer() 135 135 { 136 if (player == NULL)136 if (player == nullptr) 137 137 { 138 138 for (ObjectList<DodgeRaceShip>::iterator it = ObjectList<DodgeRaceShip>::begin(); it != ObjectList<DodgeRaceShip>::end(); ++it) … … 173 173 this->bForceSpawn_ = false; 174 174 175 if (this->center_ == NULL) // abandon mission!175 if (this->center_ == nullptr) // abandon mission! 176 176 { 177 177 orxout(internal_error) << "DodgeRace: No Centerpoint specified." << endl; -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceCenterPoint.cc
r10624 r10765 56 56 void DodgeRaceCenterPoint::checkGametype() 57 57 { 58 if (this->getGametype() != NULL&& this->getGametype()->isA(Class(DodgeRace)))58 if (this->getGametype() != nullptr && this->getGametype()->isA(Class(DodgeRace))) 59 59 { 60 60 DodgeRace* DodgeRaceGametype = orxonox_cast<DodgeRace*>(this->getGametype()); -
code/branches/cpp11_v2/src/modules/dodgerace/DodgeRaceShip.cc
r10624 r10765 91 91 // Camera 92 92 Camera* camera = this->getCamera(); 93 if (camera != NULL)93 if (camera != nullptr) 94 94 { 95 95 // camera->setPosition(Vector3(-pos.z, -posforeward, 0)); … … 152 152 DodgeRace* DodgeRaceShip::getGame() 153 153 { 154 if (game == NULL)154 if (game == nullptr) 155 155 { 156 156 for (ObjectList<DodgeRace>::iterator it = ObjectList<DodgeRace>::begin(); it != ObjectList<DodgeRace>::end(); ++it)
Note: See TracChangeset
for help on using the changeset viewer.