IPerson, IWeaponsDealerpublic class WeaponsDealerState extends java.lang.Object implements IWeaponsDealer
| Constructor | Description |
|---|---|
WeaponsDealerState() |
| Modifier and Type | Method | Description |
|---|---|---|
javafx.beans.property.ReadOnlyIntegerProperty |
amountAvailableProperty(EWeapon weapon) |
Property representing the amount that can be bought from the dealer.
|
protected boolean |
containsWeapon(IWeapon weapons) |
Check if there is an amountable object for this ware
|
void |
init() |
|
int |
move(IWeapon weapon,
int amount) |
Move ware into this holding.
|
void |
setCity(ICity city) |
Set the city.
|
@PostConstruct public void init()
public int move(IWeapon weapon, int amount)
move in interface IWeaponsDealerweapon - to be movedamount - of the ware that is movedprotected final boolean containsWeapon(IWeapon weapons)
weapons - to be checkedpublic javafx.beans.property.ReadOnlyIntegerProperty amountAvailableProperty(EWeapon weapon)
IWeaponsDealeramountAvailableProperty in interface IWeaponsDealerweapon - that is to be soldpublic void setCity(ICity city)
IWeaponsDealersetCity in interface IWeaponsDealercity - in which the weapons dealer operatesCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.