#include <Money.h>
Inherits Snapshot.
Public Member Functions | |
| Money () | |
| void | init () |
| UnsignedInt | countMoney () const |
| UnsignedInt | withdraw (UnsignedInt amountToWithdraw, Bool playSound=TRUE) |
| returns the actual amount withdrawn, which may be less than you want. (sorry, can't go into debt...) | |
| void | deposit (UnsignedInt amountToDeposit, Bool playSound=TRUE) |
| void | setPlayerIndex (Int ndx) |
| Bool | amountEqual (const Money &that) const |
Public Member Functions inherited from Snapshot | |
| Snapshot (void) | |
| ~Snapshot (void) | |
Static Public Member Functions | |
| static void | parseMoneyAmount (INI *ini, void *instance, void *store, const void *userData) |
Protected Member Functions | |
| virtual void | crc (Xfer *xfer) |
| virtual void | xfer (Xfer *xfer) |
| virtual void | loadPostProcess (void) |
How much "money" (Tiberium, Gems, Magic Resource Boxes, whatever) the Player has. This is currently a Very Simple Class but is encapsulated in anticipation of future expansion.
|
inline |
|
protectedvirtual |
| void Money::deposit | ( | UnsignedInt | amountToDeposit, |
| Bool | playSound = TRUE ) |
|
protectedvirtual |
|
static |
| UnsignedInt Money::withdraw | ( | UnsignedInt | amountToWithdraw, |
| Bool | playSound = TRUE ) |
|
protectedvirtual |