Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2017, 3:29:03 PM (7 years ago)
Author:
merholzl
Message:

XML Ports and cleanUp

File:
1 edited

Legend:

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

    r11596 r11600  
    5858    }
    5959
    60    
    6160    void FlappyOrxShip::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    6261        {   
    6362            SUPER(FlappyOrxShip, XMLPort, xmlelement, mode);
    64             XMLPortParam(FlappyOrxShip, "speed", setSpeed, getSpeed, xmlelement, mode);
     63            XMLPortParam(FlappyOrxShip, "Speed", setSpeed, getSpeed, xmlelement, mode);
    6564            XMLPortParam(FlappyOrxShip, "UpwardThrust", setUpwardThrust, getUpwardThrust, xmlelement, mode);
    66             XMLPortParam(FlappyOrxShip, "gravity", setGravity, getGravity, xmlelement, mode);
     65            XMLPortParam(FlappyOrxShip, "Gravity", setGravity, getGravity, xmlelement, mode);
    6766    }
    6867
     
    117116    }
    118117
    119     void FlappyOrxShip::updateLevel()
    120     {
    121         if (getGame())
    122             getGame()->levelUp();
    123     }
    124 
    125118    int FlappyOrxShip::timeUntilRespawn(){
    126119        return 2-time(0)+deathTime;
     
    137130    }
    138131
    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    // }
    145138
    146139    FlappyOrx* FlappyOrxShip::getGame()
Note: See TracChangeset for help on using the changeset viewer.