Define the WormMoney class containing money related functions.
More...
Static Public Member Functions |
|
static function | HasMoney (money) |
| Check if we have enough money (via loan and on bank).
|
static function | GetMoney (money) |
| Get the amount of money requested, loan if needed.
|
static function | InflationCorrection (money) |
| Compute the amount of money corrected for inflation.
|
Detailed Description
Define the WormMoney class containing money related functions.
Member Function Documentation
function WormMoney::GetMoney |
( |
money |
| ) |
|
|
static |
Get the amount of money requested, loan if needed.
- Parameters
-
money | The amount of money we need. |
- Returns
- Boolean saying if we got the needed money or not.
function WormMoney::HasMoney |
( |
money |
| ) |
|
|
static |
Check if we have enough money (via loan and on bank).
- Parameters
-
money | The amount of money we need. |
- Returns
- Boolean saying if we do or don't have enough money.
function WormMoney::InflationCorrection |
( |
money |
| ) |
|
|
static |
Compute the amount of money corrected for inflation.
- Parameters
-
money | The uncorrected amount of money. |
- Returns
- The inflation corrected amount of money.
- Note
- Adapted from SuperLib.Money.Inflate: Computes GetInflationRate only once.
The documentation for this class was generated from the following file: