Changeset 12384 for code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
- Timestamp:
- May 16, 2019, 4:03:46 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/CMakeLists.txt
r12371 r12384 7 7 OrxoBloxScore.cc 8 8 OrxoBloxShip.cc 9 ../weapons/weaponmodes/BallGun.cc 10 ../weapons/projectiles/BallProjectile.cc 9 11 10 12 ) -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12382 r12384 230 230 orxout() << "level up called" << endl; 231 231 this->playerScored(this->player_);// add points 232 for(OrxoBloxStones* stone : this->stones_){ 233 int x_=(stone->getPosition()).x; 234 int y_=(stone->getPosition()).y; 235 z_=(stone->getPosition()).z; 236 //if(z_==90)this->end(); 237 238 stone->setPosition(x_,y_,z_+9.0f); 239 240 } 232 241 233 242 234 … … 270 262 //create balls 271 263 //insert new wall 272 if( z_ >= 45){ 273 orxout() << "calling end() function" << endl; 274 this->end(); 275 } 264 for(OrxoBloxStones* stone : this->stones_){ 265 if (stone != nullptr) { 266 int x_=(stone->getPosition()).x; 267 int y_=(stone->getPosition()).y; 268 z_=(stone->getPosition()).z; 269 //if(z_==90)this->end(); 270 271 stone->setPosition(x_,y_,z_+9.0f); 272 if( z_ >= 45){ 273 orxout() << "calling end() function" << endl; 274 this->end(); 275 } 276 } 277 278 } 279 276 280 277 281 }
Note: See TracChangeset
for help on using the changeset viewer.