Changeset 11509 for code/branches/FlappyOrx_HS17/src
- Timestamp:
- Oct 23, 2017, 4:19:11 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.cc
r11505 r11509 50 50 51 51 UpwardThrust = 250; 52 speed = 1;52 speed = 50; 53 53 gravity = 20; 54 void AutonomousDrone::XMLPort(Element& xmlelement, XMLPort::Mode mode) 55 { 56 SUPER(AutonomousDrone, XMLPort, xmlelement, mode); 57 XMLPortParam(FlappyOrxShip, "speed", setSpeed, getSpeed, xmlelement, mode); 58 XMLPortParam(FlappyOrxShip, "UpwardThrust", setUpwardThrust, getUpwardThrust, xmlelement, mode); 59 XMLPortParam(FlappyOrxShip, "gravity", setGravity, getGravity, xmlelement, mode); 60 } 54 61 } 55 56 62 void FlappyOrxShip::tick(float dt) 57 63 { //Execute movement … … 94 100 95 101 } 102 96 103 97 104 SUPER(FlappyOrxShip, tick, dt);
Note: See TracChangeset
for help on using the changeset viewer.