- 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/SOBMushroom.cc
r11416 r11769 48 48 RegisterObject(SOBMushroom); 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; … … 86 82 87 83 88 void SOBMushroom::setFigure(SOBFigure* newFigure)89 {90 figure_ = newFigure;91 }92 93 94 95 84 void SOBMushroom::tick(float dt) 96 85 { … … 104 93 changedOn_ = 0.0; 105 94 95 } 106 96 } 107 }108 97 109 98 … … 116 105 velocity.x = dir*speed_; 117 106 setVelocity(velocity); 118 119 120 121 lastPos_ = getPosition(); 122 } 107 } 123 108 124 109
Note: See TracChangeset
for help on using the changeset viewer.