WormAIDev  Worm SELF_VERSION
 All Classes Files Functions Variables Pages
List of all members
WormMoney Class Reference

Define the WormMoney class containing money related functions. More...

Static Public Member Functions

Money related 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
moneyThe 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
moneyThe 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
moneyThe 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: