Changeset 10260 for code/trunk/src/modules/jump/JumpScore.cc
- Timestamp:
- Feb 6, 2015, 11:03:00 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pickupsFS14 merged: 10184
- Property svn:mergeinfo changed
-
code/trunk/src/modules/jump/JumpScore.cc
r10215 r10260 50 50 owner_ = NULL; 51 51 showScore_ = false; 52 showFuel_ = false; 52 53 showMessages_ = false; 53 54 } … … 63 64 64 65 XMLPortParam(JumpScore, "showScore", setShowScore, getShowScore, xmlelement, mode); 66 XMLPortParam(JumpScore, "showFuel", setShowFuel, getShowFuel, xmlelement, mode); 65 67 XMLPortParam(JumpScore, "showMessages", setShowMessages, getShowMessages, xmlelement, mode); 66 68 XMLPortParam(JumpScore, "gameOverText", setGameOverText, getGameOverText, xmlelement, mode); … … 86 88 setCaption(str); 87 89 } 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 } 88 106 else if (showMessages_ == true) 89 107 { 90 91 108 setCaption(owner_->getDead(player_) == true ? gameOverText_ : ""); 92 109 }
Note: See TracChangeset
for help on using the changeset viewer.