Changeset 10768 for code/branches/cpp11_v2/src/modules/pong
- Timestamp:
- Nov 6, 2015, 10:54:34 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/pong
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/pong/Pong.cc
r10765 r10768 64 64 RegisterObject(Pong); 65 65 66 this->center_ = 0;67 this->ball_ = 0;68 this->bat_[0] = 0;69 this->bat_[1] = 0;66 this->center_ = nullptr; 67 this->ball_ = nullptr; 68 this->bat_[0] = nullptr; 69 this->bat_[1] = nullptr; 70 70 71 71 this->setHUDTemplate("PongHUD"); … … 106 106 { 107 107 this->ball_->destroy(); 108 this->ball_ = 0;108 this->ball_ = nullptr; 109 109 } 110 110 … … 115 115 { 116 116 this->bat_[0]->destroy(); 117 this->bat_[0] = 0;117 this->bat_[0] = nullptr; 118 118 } 119 119 } … … 329 329 return this->bat_[0]->getPlayer(); 330 330 else 331 return 0;331 return nullptr; 332 332 } 333 333 … … 343 343 return this->bat_[1]->getPlayer(); 344 344 else 345 return 0;345 return nullptr; 346 346 } 347 347 } -
code/branches/cpp11_v2/src/modules/pong/PongAI.cc
r10765 r10768 57 57 RegisterObject(PongAI); 58 58 59 this->ball_ = 0;59 this->ball_ = nullptr; 60 60 this->ballDirection_ = Vector2::ZERO; 61 61 this->ballEndPosition_ = 0; -
code/branches/cpp11_v2/src/modules/pong/PongBall.cc
r10765 r10768 61 61 this->speed_ = 0; 62 62 this->accelerationFactor_ = 1.0f; 63 this->bat_ = 0;63 this->bat_ = nullptr; 64 64 this->bDeleteBats_ = false; 65 65 this->batID_ = new unsigned int[2]; … … 82 82 else 83 83 { 84 this->defScoreSound_ = 0;85 this->defBatSound_ = 0;86 this->defBoundarySound_ = 0;84 this->defScoreSound_ = nullptr; 85 this->defBatSound_ = nullptr; 86 this->defBoundarySound_ = nullptr; 87 87 } 88 88 } -
code/branches/cpp11_v2/src/modules/pong/PongScore.cc
r10765 r10768 55 55 RegisterObject(PongScore); 56 56 57 this->owner_ = 0;57 this->owner_ = nullptr; 58 58 59 59 this->bShowName_ = false; … … 172 172 this->owner_ = orxonox_cast<Pong*>(this->getOwner()->getGametype()); 173 173 else 174 this->owner_ = 0;174 this->owner_ = nullptr; 175 175 } 176 176 }
Note: See TracChangeset
for help on using the changeset viewer.