public interface IWeapon extends IAmountable
| Modifier and Type | Method and Description |
|---|---|
int |
computeBuyPrice(int availableAmount,
int amountToBuy)
Compute the price for the weapons to be bought.
|
int |
computeSellPrice(int availableAmount,
int amountToSell)
Compute the price for the weapons to be sold.
|
String |
name()
As this interface is implemented by an enumeration add this method
|
String name()
int computeSellPrice(int availableAmount,
int amountToSell)
availableAmount - Amount of the weapon that is availableamountToSell - Amount of weapon that is to be soldint computeBuyPrice(int availableAmount,
int amountToBuy)
availableAmount - Amount of the weapon that is availableamountToBuy - Amount of weapon that is to be boughtCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.