Changeset 10768 for code/branches/cpp11_v2/src/modules/tetris
- Timestamp:
- Nov 6, 2015, 10:54:34 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/tetris
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/tetris/Tetris.cc
r10765 r10768 66 66 RegisterObject(Tetris); 67 67 68 this->activeBrick_ = 0;68 this->activeBrick_ = nullptr; 69 69 70 70 // Pre-set the timer, but don't start it yet. … … 74 74 this->player_ = nullptr; 75 75 this->setHUDTemplate("TetrisHUD"); 76 this->futureBrick_ = 0;76 this->futureBrick_ = nullptr; 77 77 } 78 78 … … 96 96 { 97 97 this->activeBrick_->destroy(); 98 this->activeBrick_ = 0;98 this->activeBrick_ = nullptr; 99 99 } 100 100 if (this->futureBrick_) 101 101 { 102 102 this->futureBrick_->destroy(); 103 this->futureBrick_ = 0;103 this->futureBrick_ = nullptr; 104 104 } 105 105 … … 396 396 // Make the last brick to be created the active brick. 397 397 this->activeBrick_ = this->futureBrick_; 398 this->futureBrick_ = 0;398 this->futureBrick_ = nullptr; 399 399 400 400 // set its position -
code/branches/cpp11_v2/src/modules/tetris/TetrisScore.cc
r10765 r10768 56 56 RegisterObject(TetrisScore); 57 57 58 this->owner_ = 0;58 this->owner_ = nullptr; 59 59 this->player_ = nullptr; 60 60 } … … 120 120 this->owner_ = orxonox_cast<Tetris*>(this->getOwner()->getGametype()); 121 121 else 122 this->owner_ = 0;122 this->owner_ = nullptr; 123 123 } 124 124 }
Note: See TracChangeset
for help on using the changeset viewer.