Changeset 12332 for code/branches/OrxoBlox_FS19
- Timestamp:
- May 2, 2019, 3:52:29 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
r12331 r12332 224 224 225 225 void OrxoBlox::createWall(void){ 226 orxout() <<"Hello idiot1"<< endl; 227 226 228 this->futureWall_ = new OrxoBloxWall(this->center_->getContext()); 227 229 // Apply the stone template to the stone. -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.cc
r12331 r12332 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_ = 2;//1 + static_cast<unsigned int>(rnd(6.0f)); //<! random number between 0 and 7; 22 this->size_ = 10.0f; 22 23 this->delay_ = false; 23 24 this->orxoblox_ = this->getOrxoBlox(); … … 27 28 28 29 void OrxoBloxWall::createWall(void){ 29 30 orxout() <<"Hello idiot"<< endl; 30 31 for (unsigned int i=0; i<this->num_Stones_;++i){ 32 orxout() <<i<< endl; 31 33 OrxoBloxStones* stone = new OrxoBloxStones(this->getContext()); 32 33 34 34 this->TotalStones_.push_back(stone); 35 35 this->attach(stone); 36 37 stone->setPosition(0.0f, i, 0.0f); 36 stone->setPosition(size_*i, 0, 0.0f); 38 37 39 38 -
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBloxWall.h
r12331 r12332 47 47 unsigned int totalhealth_; 48 48 unsigned int num_Stones_; 49 unsigned int size_; 49 50 std::vector<OrxoBloxStones*> TotalStones_; //!< A list of all stones in a Wall. 50 51 bool delay_;
Note: See TracChangeset
for help on using the changeset viewer.