Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 6, 2015, 11:03:00 PM (9 years ago)
Author:
landauf
Message:

merged the latest changes from pickupsFS14 to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/modules/jump/JumpScore.cc

    r10215 r10260  
    5050        owner_ = NULL;
    5151        showScore_ = false;
     52        showFuel_ = false;
    5253        showMessages_ = false;
    5354    }
     
    6364
    6465        XMLPortParam(JumpScore, "showScore", setShowScore, getShowScore, xmlelement, mode);
     66        XMLPortParam(JumpScore, "showFuel", setShowFuel, getShowFuel, xmlelement, mode);
    6567        XMLPortParam(JumpScore, "showMessages", setShowMessages, getShowMessages, xmlelement, mode);
    6668        XMLPortParam(JumpScore, "gameOverText", setGameOverText, getGameOverText, xmlelement, mode);
     
    8688                        setCaption(str);
    8789                    }
     90                    else if (showFuel_ == true)
     91                    {
     92                        float fuel = owner_->getFuel();
     93                        orxout() <<  fuel << endl;
     94                        std::string str;
     95
     96                        if (fuel <= 0.0)
     97                        {
     98                            str = "";
     99                        }
     100                        else
     101                        {
     102                            str = multi_cast<std::string>(fuel);
     103                        }
     104                        setCaption(str);
     105                    }
    88106                    else if (showMessages_ == true)
    89107                    {
    90 
    91108                        setCaption(owner_->getDead(player_) == true ? gameOverText_ : "");
    92109                    }
Note: See TracChangeset for help on using the changeset viewer.