IWeaponStoragepublic class WeaponStorage extends java.lang.Object implements IWeaponStorage
| Constructor | Description |
|---|---|
WeaponStorage() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getWeapon(IWeapon weapon) |
Retrieve the amount of weapons in storage
|
javafx.beans.property.ReadOnlyIntegerProperty |
getWeaponProperty(IWeapon weapon) |
Retrieve the property holding the mount of stored weapons of the indicated type.
|
boolean |
hasWeapons() |
check if there are any weapons stored
|
int |
update(IWeapon weapon,
int amount) |
Move weapons in or out of storage
|
public int getWeapon(IWeapon weapon)
IWeaponStoragegetWeapon in interface IWeaponStorageweapon - for which to retrieve the amountweapon stored.public int update(IWeapon weapon, int amount)
IWeaponStorageupdate in interface IWeaponStorageweapon - type of weaponamount - to be moved (positive means into the storage, negative out of the storage)public boolean hasWeapons()
IWeaponStoragehasWeapons in interface IWeaponStoragepublic javafx.beans.property.ReadOnlyIntegerProperty getWeaponProperty(IWeapon weapon)
IWeaponStoragegetWeaponProperty in interface IWeaponStorageweapon - for which to retrieve the amountweaponCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.