- Timestamp:
- Feb 18, 2018, 5:23:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Presentation_HS17_merge/src/modules/superorxobros/SOBGumba.cc
r11766 r11769 48 48 RegisterObject(SOBGumba); 49 49 50 attachedToFigure_ = false;51 50 setAngularFactor(0.0); 52 figure_ = nullptr;53 51 this->enableCollisionCallback(); 54 52 gravityAcceleration_ = 350.0; … … 56 54 hasCollided_=false; 57 55 goesRight_ = true; 58 lastPos_ = getPosition();59 lastPos_.x -= 20;60 56 changeAllowed_ = true; 61 57 changedOn_ = 0.0; … … 88 84 } 89 85 90 91 void SOBGumba::setFigure(SOBFigure* newFigure)92 {93 figure_ = newFigure;94 }95 86 96 87 void SOBGumba::setDirection(const bool direction) … … 140 131 setVelocity(velocity); 141 132 142 lastPos_ = getPosition();143 144 133 if (creator_ != nullptr) 145 134 {
Note: See TracChangeset
for help on using the changeset viewer.