| Type | Property and Description |
|---|---|
javafx.beans.property.ReadOnlyIntegerProperty |
ballistaBigAmount
Property holding the amount of big ballista in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
ballistaSmallAmount
Property holding the amount of small ballista in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
bombardAmount
Property holding the amount of bombard in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
bowAmount
Property holding the amount of bows in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
canonAmount
Property holding the amount of canon in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
crossbowAmount
Property holding the amount of crossbows in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
cutlassAmount
Property holding the amount of hand weapons in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
musketAmount
Property holding the amount of musket in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
swordAmount
Property holding the amount of swords in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
trebuchetBigAmount
Property holding the amount of big trebuchet in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
trebuchetSmallAmount
Property holding the amount of small trebuchet in the storage.
|
| Modifier and Type | Field and Description |
|---|---|
private ICity |
city |
private Date |
date |
private double |
experience
Value between 0 and 1 detailing the experience of the ship yard crew (the higher the better)
|
private static double |
EXPERIENCE_GAIN |
private IMap |
map |
private java.time.LocalDateTime |
occupied
Date until which the blacksmith is covered with work.
|
private HashMap<IWeapon,Boolean> |
priority |
private IWeaponStorage |
weaponStorage |
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ReadOnlyIntegerProperty |
ballistaBigAmountProperty()
Property holding the amount of big ballista in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
ballistaSmallAmountProperty()
Property holding the amount of small ballista in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
bombardAmountProperty()
Property holding the amount of bombard in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
bowAmountProperty()
Property holding the amount of bows in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
canonAmountProperty()
Property holding the amount of canon in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
crossbowAmountProperty()
Property holding the amount of crossbows in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
cutlassAmountProperty()
Property holding the amount of hand weapons in the storage.
|
void |
gainExperience()
Increase the experience.
|
private void |
init() |
boolean |
isBowPriority()
Indicate that the bow should be produced with priority
|
boolean |
isCrossbowPriority()
Indicate that the crossbow should be produced with priority
|
boolean |
isMusketPriority()
Indicate that the musket should be produced with priority
|
boolean |
isSwordPriority()
Indicate that the sword should be produced with priority
|
javafx.beans.property.ReadOnlyIntegerProperty |
musketAmountProperty()
Property holding the amount of musket in the storage.
|
java.time.LocalDateTime |
occupiedUntil()
Date until the blacksmith has work.
|
void |
occupy(java.time.LocalDateTime date)
Date in the future until which the blacksmith has work.
|
javafx.beans.property.ReadOnlyIntegerProperty |
swordAmountProperty()
Property holding the amount of swords in the storage.
|
void |
toggleBowPriority()
Toggle the priority of the bow.
|
void |
toggleCrossbowPriority()
Toggle the priority of the crossbow.
|
void |
toggleMusketPriority()
Toggle the priority of the musket.
|
void |
toggleSwordPriority()
Toggle the priority of the sword.
|
javafx.beans.property.ReadOnlyIntegerProperty |
trebuchetBigAmountProperty()
Property holding the amount of big trebuchet in the storage.
|
javafx.beans.property.ReadOnlyIntegerProperty |
trebuchetSmallAmountProperty()
Property holding the amount of small trebuchet in the storage.
|
void |
updateBallistaBigAmount(int delta)
Update the amount of big ballista by the
delta amount |
void |
updateBallistaSmallAmount(int delta)
Update the amount of small ballista by the
delta amount |
void |
updateBombardAmount(int delta)
Update the amount of bombard by the
delta amount |
void |
updateBowAmount(int delta)
Update the amount of bows by the
delta amount |
void |
updateCanonAmount(int delta)
Update the amount of canon by the
delta amount |
void |
updateCrossbowAmount(int delta)
Update the amount of crossbows by the
delta amount |
void |
updateCutlassAmount(int delta)
Update the amount of hand weapon by the
delta amount |
void |
updateMusketAmount(int delta)
Update the amount of musket by the
delta amount |
void |
updateSwordAmount(int delta)
Update the amount of swords by the
delta amount |
void |
updateTrebuchetBigAmount(int delta)
Update the amount of big trebuchet by the
delta amount |
void |
updateTrebuchetSmallAmount(int delta)
Update the amount of small trebuchet by the
delta amount |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExperiencepublic javafx.beans.property.ReadOnlyIntegerProperty swordAmountProperty
swordAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty bowAmountProperty
bowAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty crossbowAmountProperty
crossbowAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty musketAmountProperty
musketAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty cutlassAmountProperty
cutlassAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty trebuchetSmallAmountProperty
trebuchetSmallAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty trebuchetBigAmountProperty
trebuchetBigAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty ballistaSmallAmountProperty
ballistaSmallAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty ballistaBigAmountProperty
ballistaBigAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty bombardAmountProperty
bombardAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty canonAmountProperty
canonAmountProperty in interface IArmoryprivate static final double EXPERIENCE_GAIN
@Autowired private IWeaponStorage weaponStorage
@Autowired private Date date
@Autowired private IMap map
private final ICity city
private double experience
private java.time.LocalDateTime occupied
public Armory(ICity city)
@PostConstruct private void init()
public javafx.beans.property.ReadOnlyIntegerProperty swordAmountProperty()
IArmoryswordAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty bowAmountProperty()
IArmorybowAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty crossbowAmountProperty()
IArmorycrossbowAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty musketAmountProperty()
IArmorymusketAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty cutlassAmountProperty()
IArmorycutlassAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty trebuchetSmallAmountProperty()
IArmorytrebuchetSmallAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty trebuchetBigAmountProperty()
IArmorytrebuchetBigAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty ballistaSmallAmountProperty()
IArmoryballistaSmallAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty ballistaBigAmountProperty()
IArmoryballistaBigAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty bombardAmountProperty()
IArmorybombardAmountProperty in interface IArmorypublic javafx.beans.property.ReadOnlyIntegerProperty canonAmountProperty()
IArmorycanonAmountProperty in interface IArmorypublic boolean isSwordPriority()
IArmoryisSwordPriority in interface IArmorypublic boolean isBowPriority()
IArmoryisBowPriority in interface IArmorypublic boolean isCrossbowPriority()
IArmoryisCrossbowPriority in interface IArmorypublic boolean isMusketPriority()
IArmoryisMusketPriority in interface IArmorypublic void toggleSwordPriority()
IArmorytoggleSwordPriority in interface IArmorypublic void toggleBowPriority()
IArmorytoggleBowPriority in interface IArmorypublic void toggleCrossbowPriority()
IArmorytoggleCrossbowPriority in interface IArmorypublic void toggleMusketPriority()
IArmorytoggleMusketPriority in interface IArmorypublic void updateSwordAmount(int delta)
IArmorydelta amountupdateSwordAmount in interface IArmorydelta - amount to be changed.public void updateBowAmount(int delta)
IArmorydelta amountupdateBowAmount in interface IArmorydelta - amount to be changed.public void updateCrossbowAmount(int delta)
IArmorydelta amountupdateCrossbowAmount in interface IArmorydelta - amount to be changed.public void updateMusketAmount(int delta)
IArmorydelta amountupdateMusketAmount in interface IArmorydelta - amount to be changed.public void updateCutlassAmount(int delta)
IArmorydelta amountupdateCutlassAmount in interface IArmorydelta - amount to be changed.public void updateTrebuchetSmallAmount(int delta)
IArmorydelta amountupdateTrebuchetSmallAmount in interface IArmorydelta - amount to be changed.public void updateTrebuchetBigAmount(int delta)
IArmorydelta amountupdateTrebuchetBigAmount in interface IArmorydelta - amount to be changed.public void updateBallistaSmallAmount(int delta)
IArmorydelta amountupdateBallistaSmallAmount in interface IArmorydelta - amount to be changed.public void updateBallistaBigAmount(int delta)
IArmorydelta amountupdateBallistaBigAmount in interface IArmorydelta - amount to be changed.public void updateBombardAmount(int delta)
IArmorydelta amountupdateBombardAmount in interface IArmorydelta - amount to be changed.public void updateCanonAmount(int delta)
IArmorydelta amountupdateCanonAmount in interface IArmorydelta - amount to be changed.public void gainExperience()
IArmorygainExperience in interface IArmorypublic java.time.LocalDateTime occupiedUntil()
IArmoryoccupiedUntil in interface IArmoryCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.