Changeset 9087 for code/branches/pCuts/src/modules/tetris/TetrisBrick.cc
- Timestamp:
- Apr 14, 2012, 5:45:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pCuts/src/modules/tetris/TetrisBrick.cc
r9086 r9087 40 40 #include "TetrisStone.h" 41 41 #include "Tetris.h" 42 #include "util/Math.h" 42 43 43 44 namespace orxonox … … 52 53 { 53 54 RegisterObject(TetrisBrick); 54 55 this->shapeIndex_ = 4; //<! TODO: random number between 0 and 7 55 this->shapeIndex_ = static_cast<unsigned int>(rnd(7.0f)); //<! random number between 0 and 7 56 56 this->stonesPerBrick_ = 4; //<! most tetris bricks is formed by 4 stones 57 57 this->delay_ = false; … … 105 105 void TetrisBrick::formBrick(TetrisStone* stone, unsigned int i) 106 106 { 107 if(i != 0 && this->shapeIndex_ == 0)108 orxout() << "So it has come to this in TetrisBrick.cc"<< endl;109 107 if(i == 0) //setting the first stone as 110 108 {
Note: See TracChangeset
for help on using the changeset viewer.