Changeset 12341 for code/branches/OrxoBlox_FS19/src/modules
- Timestamp:
- May 9, 2019, 10:25:24 AM (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/OrxoBloxWall.cc
r12335 r12341 19 19 RegisterObject(OrxoBloxWall); 20 20 21 this->num_Stones_ = 1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7;21 this->num_Stones_ = 10; 22 22 this->size_ = 9.0f; 23 23 this->delay_ = false; 24 24 25 this->orxoblox_ = this->getOrxoBlox(); 26 this->center_ = this->orxoblox_->getCenterpoint(); 25 27 this->createWall(); 26 28 } … … 35 37 this->TotalStones_.push_back(stone); 36 38 this->attach(stone); 37 stone->setPosition(size_*i -55.5f, 0, 0.0f); 39 float x_=(this->center_->getFieldDimension()).x; 40 float y_=(this->center_->getFieldDimension()).y; 41 stone->setPosition(size_*i -x_/2 +4.5f, -3.5f, -y_/2 + 6.5f); 38 42 39 43 -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.h
r12332 r12341 51 51 bool delay_; 52 52 OrxoBlox* orxoblox_; 53 53 WeakPtr<OrxoBloxCenterpoint> center_; //!< The playing field. 54 54 55 55 };
Note: See TracChangeset
for help on using the changeset viewer.