public interface UpgradeCost
Modifier and Type | Method and Description |
---|---|
UpgradeCost |
clone(java.math.BigDecimal cost)
Clone this cost with a new cost value.
|
java.math.BigDecimal |
getCost()
Get the cost value.
|
java.lang.String |
getId()
Get the id of this upgrade cost.
|
boolean |
hasEnoughBalance(SuperiorPlayer superiorPlayer)
Check whether or not the player has enough money in his bank.
|
void |
withdrawCost(SuperiorPlayer superiorPlayer)
Withdraw the cost value from the player.
|
java.lang.String getId()
java.math.BigDecimal getCost()
boolean hasEnoughBalance(SuperiorPlayer superiorPlayer)
superiorPlayer
- The player to check.void withdrawCost(SuperiorPlayer superiorPlayer)
superiorPlayer
- The player to withdraw from.UpgradeCost clone(java.math.BigDecimal cost)
cost
- The new cost value