- Timestamp:
- May 11, 2017, 3:18:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SuperOrxoBros_FS17/src/modules/superorxobros/SOBMushroom.cc
r11412 r11416 21 21 * 22 22 * Author: 23 * Fabien Vultier23 * Julien Kindle 24 24 * Co-authors: 25 * ...25 * 26 26 * 27 27 */ … … 29 29 /** 30 30 @file SOBMushroom.cc 31 @brief All items in this minigame inherit from this class. Items can move around like platforms and enemies.31 @brief This is the class for the powerup mushroom 32 32 */ 33 33 … … 77 77 78 78 79 if (changeAllowed_ && otherObject->getMass() != -1) {79 if (changeAllowed_ && otherObject->getMass() != -1) { 80 80 goesRight_ = !goesRight_; 81 81 changeAllowed_ = false; 82 }82 } 83 83 84 orxout() << "Watshc bum baem" << otherObject->getMass()<< endl; 85 return true; 84 return true; 86 85 } 87 86 … … 92 91 } 93 92 94 void SOBMushroom::touchFigure()95 {96 93 97 }98 94 99 95 void SOBMushroom::tick(float dt) … … 101 97 SUPER(SOBMushroom, tick, dt); 102 98 99 //Exactly like the Gumba class, if collided, turn direction of Mushroom and wait 200ms so we don't get two collisions from the same wall 103 100 if (!changeAllowed_) { 104 101 changedOn_+= dt; 105 if (changedOn_> 200) {102 if (changedOn_> 0.200) { 106 103 changeAllowed_ = true; 107 104 changedOn_ = 0.0;
Note: See TracChangeset
for help on using the changeset viewer.