- Timestamp:
- May 16, 2019, 2:20:38 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12371 r12376 98 98 */ 99 99 void OrxoBlox::cleanup() 100 { 100 { 101 101 //if (this->ball_ != nullptr) // Destroy the ball, if present. 102 102 //{ … … 105 105 //} 106 106 107 if (this->futureWall_ != nullptr)107 /*if (this->futureWall_ != nullptr) 108 108 { 109 109 this->futureWall_->destroy(); 110 110 this->futureWall_ = nullptr; 111 111 } 112 112 */ 113 113 114 for (OrxoBloxWall* wall : this->activeWalls_) 114 115 if (wall != nullptr) 115 wall->destroy();116 wall->destroy(); 116 117 this->activeWalls_.clear(); 117 118 … … 132 133 133 134 { 135 orxout() << "Orxoblox started" << endl; 134 136 if (this->center_ != nullptr) // There needs to be a OrxoBloxCenterpoint, i.e. the area the game takes place. 135 137 { … … 222 224 void OrxoBlox::LevelUp(){ 223 225 level_++; 226 int z_; 227 228 orxout() << "level up called" << endl; 224 229 this->playerScored(this->player_);// add points 225 230 for(OrxoBloxStones* stone : this->stones_){ 226 231 int x_=(stone->getPosition()).x; 227 232 int y_=(stone->getPosition()).y; 228 intz_=(stone->getPosition()).z;233 z_=(stone->getPosition()).z; 229 234 //if(z_==90)this->end(); 230 235 231 236 stone->setPosition(x_,y_,z_+9.0f); 232 233 if( z_ >= 45){ 234 this->end(); 235 } 237 236 238 } 237 239 … … 266 268 //create balls 267 269 //insert new wall 270 if( z_ >= 45){ 271 orxout() << "calling end() function" << endl; 272 this->end(); 273 } 274 268 275 } 269 276
Note: See TracChangeset
for help on using the changeset viewer.