aPunch/RealExchange — Issue #8: Unnecessary methods in BalanceManager
Author: WalkerCrouse
Created: 2011-11-25 16:22:50+00:00
State: open

If you think about it, deposit(...) and withdraw(...) are no necessary; all we need is getBalance(...) and setBalance(...)

ie.

bm.setBalance(player, bm.getBalance(player) + amount);

--is the same as--

bm.deposit(player, amount);

We should leave what the dev wants to do with the balance up to him. (What if he wants to divide it, or multiply it)