Import vehicle lifetime profit patch v3
http://www.tt-forums.net/viewtopic.php?p=1161735#p1161735
This commit is contained in:
committed by
Jonathan G Rennison
parent
137ecd5377
commit
71be17729e
@@ -180,6 +180,7 @@ public:
|
||||
|
||||
Money profit_this_year; ///< Profit this year << 8, low 8 bits are fract
|
||||
Money profit_last_year; ///< Profit last year << 8, low 8 bits are fract
|
||||
Money profit_lifetime; ///< Profit lifetime << 8, low 8 bits are fract
|
||||
Money value; ///< Value of the vehicle
|
||||
|
||||
CargoPayment *cargo_payment; ///< The cargo payment we're currently in
|
||||
@@ -513,6 +514,12 @@ public:
|
||||
*/
|
||||
Money GetDisplayProfitLastYear() const { return (this->profit_last_year >> 8); }
|
||||
|
||||
/**
|
||||
* Gets the lifetime profit of vehicle. It can be sent into SetDParam for string processing.
|
||||
* @return the vehicle's lifetime profit
|
||||
*/
|
||||
Money GetDisplayProfitLifetime() const { return (this->profit_lifetime >> 8); }
|
||||
|
||||
void SetNext(Vehicle *next);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user