#include <Bank.h>
Definition at line 25 of file Bank.h.
Public Methods | |
| Bank (int startingFunds) | |
| int | balance () |
| void | deposit (int amount) |
| bool | withdraw (int amount) |
Private Attributes | |
| int | m_funds |
|
|
Definition at line 25 of file Bank.cpp.
00025 : m_funds(startingFunds) {} |
|
|
Definition at line 27 of file Bank.cpp. References m_funds. Referenced by Overhead::overhead_update(), Overhead::playerStrength(), Overhead::processCommand(), and HUD::render().
00027 { return m_funds; }
|
|
|
Definition at line 29 of file Bank.cpp. References m_funds, and Globals::MAX_MONEY(). Referenced by NetworkSubsystem::processNetworkData(), and City::update().
|
|
|
Definition at line 35 of file Bank.cpp. References m_funds. Referenced by Overhead::processCommand(), City::trainUnit(), and City::upgradeEcon().
|
|
|
Definition at line 35 of file Bank.h. Referenced by balance(), deposit(), and withdraw(). |
1.3-rc2