Changeset 12349 for code/branches/OrxoBlox_FS19/src
- Timestamp:
- May 9, 2019, 1:33:42 PM (6 years ago)
- Location:
- code/branches/OrxoBlox_FS19/src/modules/OrxoBlox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.cc
r12346 r12349 109 109 if (this->futureWall_) 110 110 { 111 this->futureWall_->destroy(); 112 this->futureWall_ = nullptr; 113 } 111 this->futureWall_->destroy(); 112 this->futureWall_ = nullptr; 113 } 114 115 for (OrxoBloxWall* wall : this->activeWalls_) 116 wall->destroy(); 117 this->activeWalls_.clear(); 118 114 119 115 120 for (OrxoBloxStones* stone : this->stones_) … … 147 152 148 153 // Create the first Wall. 149 this-> createWall();154 this->LevelUp(); 150 155 151 156 //Create Ship … … 212 217 level_++; 213 218 this->createWall(); 219 220 for(OrxoBloxWall* Wall : this->activeWalls_){ 221 int x_=(Wall->getPosition()).x; 222 orxout()<<x_<<endl; 223 Wall->setPosition(0,0,x_+10.0f); 224 } 225 214 226 this->activeWalls_.push_back(this->futureWall_); 227 228 215 229 for (int i = 0; i < this->futureWall_->getNumberOfStones(); i++) 216 230 this->stones_.push_back(this->futureWall_->getStone(i)); … … 244 258 } 245 259 246 OrxoBloxStones* OrxoBlox::CheckForCollision(OrxoBloxBall* Ball) {260 /*OrxoBloxStones* OrxoBlox::CheckForCollision(OrxoBloxBall* Ball) { 247 261 248 262 orxout() << "Checking for Collision" << endl; … … 261 275 orxout() << "Found nothing...." << endl; 262 276 return nullptr; 263 } 277 }*/ 264 278 265 279 } -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.cc
r12347 r12349 150 150 position.z = this-> fieldHeight_ / 2; 151 151 // Set the velocity to zero 152 153 orxoblox_->LevelUp(); 154 152 155 153 156 //this->setSpeed(0); // doesn't work here, why??; … … 209 212 if (position != this->getPosition()) 210 213 this->setPosition(position); 211 this->Collides((this->orxoblox_->CheckForCollision(this)));214 //this->Collides((this->orxoblox_->CheckForCollision(this))); 212 215 213 216 -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxBall.h
r12347 r12349 151 151 WorldSound* defBoundarySound_; 152 152 OrxoBlox* orxoblox_; 153 OrxoBlox* getOrxoBlox();153 154 154 }; 155 155 }
Note: See TracChangeset
for help on using the changeset viewer.