Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 23, 2017, 4:19:11 PM (7 years ago)
Author:
merholzl
Message:

small changes and prep for XML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FlappyOrx_HS17/src/modules/flappyorx/FlappyOrxShip.cc

    r11505 r11509  
    5050
    5151        UpwardThrust = 250;
    52         speed = 1;
     52        speed = 50;
    5353        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        }
    5461    }
    55 
    5662    void FlappyOrxShip::tick(float dt)
    5763    {  //Execute movement
     
    94100           
    95101        }
     102
    96103
    97104        SUPER(FlappyOrxShip, tick, dt);
Note: See TracChangeset for help on using the changeset viewer.