Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 23, 2007, 9:32:51 PM (19 years ago)
Author:
muellmic
Message:

the percentage of the width of the screen, that the player can use for his movement can now correctly been handled by the spaceship, also within the script. the value is called 'actionWidthPercentage' btw. (yeah i know the name is horrible ). anyway it also changes the width of the hud-sidebars. its still a bit buggy tough, how it places the hud-elements with a too-small sidebar. i have to find a new solution for this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.h

    r10291 r10306  
    8181    virtual void enterPlaymode(Playable::Playmode playmode);
    8282    void setPlaymodeXML(const std::string& playmode); //recieves the playmode from a string (useful for script implementation)
    83     inline void setActionWidthPercentage(float f) {this->actionWidthPercentage = f; updateTravelDistance();};
     83    void setActionWidthPercentage(int i);
    8484    void updateTravelDistance();
    8585    virtual void movement (float dt);
Note: See TracChangeset for help on using the changeset viewer.