- Timestamp:
- Nov 27, 2017, 3:29:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.cc
r11596 r11600 58 58 } 59 59 60 61 60 void FlappyOrxShip::XMLPort(Element& xmlelement, XMLPort::Mode mode) 62 61 { 63 62 SUPER(FlappyOrxShip, XMLPort, xmlelement, mode); 64 XMLPortParam(FlappyOrxShip, " speed", setSpeed, getSpeed, xmlelement, mode);63 XMLPortParam(FlappyOrxShip, "Speed", setSpeed, getSpeed, xmlelement, mode); 65 64 XMLPortParam(FlappyOrxShip, "UpwardThrust", setUpwardThrust, getUpwardThrust, xmlelement, mode); 66 XMLPortParam(FlappyOrxShip, " gravity", setGravity, getGravity, xmlelement, mode);65 XMLPortParam(FlappyOrxShip, "Gravity", setGravity, getGravity, xmlelement, mode); 67 66 } 68 67 … … 117 116 } 118 117 119 void FlappyOrxShip::updateLevel()120 {121 if (getGame())122 getGame()->levelUp();123 }124 125 118 int FlappyOrxShip::timeUntilRespawn(){ 126 119 return 2-time(0)+deathTime; … … 137 130 } 138 131 139 void FlappyOrxShip::rotateRoll(const Vector2& value)140 {141 if (getGame())142 if (getGame()->bEndGame)143 getGame()->end();144 }132 // void FlappyOrxShip::rotateRoll(const Vector2& value) 133 // { 134 // if (getGame()) 135 // if (getGame()->bEndGame) 136 // getGame()->end(); 137 // } 145 138 146 139 FlappyOrx* FlappyOrxShip::getGame()
Note: See TracChangeset
for help on using the changeset viewer.