Class Armory
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.impl.Armory
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ReadOnlyIntegerPropertyballistaBigAmountProperty()Property holding the amount of big ballista in the storage.javafx.beans.property.ReadOnlyIntegerPropertyballistaSmallAmountProperty()Property holding the amount of small ballista in the storage.javafx.beans.property.ReadOnlyIntegerPropertybombardAmountProperty()Property holding the amount of bombard in the storage.javafx.beans.property.ReadOnlyIntegerPropertybowAmountProperty()Property holding the amount of bows in the storage.javafx.beans.property.ReadOnlyIntegerPropertycanonAmountProperty()Property holding the amount of canon in the storage.javafx.beans.property.ReadOnlyIntegerPropertycrossbowAmountProperty()Property holding the amount of crossbows in the storage.javafx.beans.property.ReadOnlyIntegerPropertycutlassAmountProperty()Property holding the amount of hand weapons in the storage.voidgainExperience()Increase the experience.booleanisBowPriority()Indicate that the bow should be produced with prioritybooleanisCrossbowPriority()Indicate that the crossbow should be produced with prioritybooleanisMusketPriority()Indicate that the musket should be produced with prioritybooleanisSwordPriority()Indicate that the sword should be produced with priorityjavafx.beans.property.ReadOnlyIntegerPropertymusketAmountProperty()Property holding the amount of musket in the storage.java.time.LocalDateTimeoccupiedUntil()Date until the blacksmith has work.voidoccupy(java.time.LocalDateTime date)Date in the future until which the blacksmith has work.javafx.beans.property.ReadOnlyIntegerPropertyswordAmountProperty()Property holding the amount of swords in the storage.voidtoggleBowPriority()Toggle the priority of the bow.voidtoggleCrossbowPriority()Toggle the priority of the crossbow.voidtoggleMusketPriority()Toggle the priority of the musket.voidtoggleSwordPriority()Toggle the priority of the sword.javafx.beans.property.ReadOnlyIntegerPropertytrebuchetBigAmountProperty()Property holding the amount of big trebuchet in the storage.javafx.beans.property.ReadOnlyIntegerPropertytrebuchetSmallAmountProperty()Property holding the amount of small trebuchet in the storage.voidupdateBallistaBigAmount(int delta)Update the amount of big ballista by thedeltaamountvoidupdateBallistaSmallAmount(int delta)Update the amount of small ballista by thedeltaamountvoidupdateBombardAmount(int delta)Update the amount of bombard by thedeltaamountvoidupdateBowAmount(int delta)Update the amount of bows by thedeltaamountvoidupdateCanonAmount(int delta)Update the amount of canon by thedeltaamountvoidupdateCrossbowAmount(int delta)Update the amount of crossbows by thedeltaamountvoidupdateCutlassAmount(int delta)Update the amount of hand weapon by thedeltaamountvoidupdateMusketAmount(int delta)Update the amount of musket by thedeltaamountvoidupdateSwordAmount(int delta)Update the amount of swords by thedeltaamountvoidupdateTrebuchetBigAmount(int delta)Update the amount of big trebuchet by thedeltaamountvoidupdateTrebuchetSmallAmount(int delta)Update the amount of small trebuchet by thedeltaamount-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.weapon.IArmory
getExperience
-
-
-
-
Constructor Detail
-
Armory
public Armory(ICity city)
-
-
Method Detail
-
swordAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty swordAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of swords in the storage.- Specified by:
swordAmountPropertyin interfaceIArmory- Returns:
- amount of swords in the armory as read only property
-
bowAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty bowAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of bows in the storage.- Specified by:
bowAmountPropertyin interfaceIArmory- Returns:
- amount of bows in the armory as read only property
-
crossbowAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty crossbowAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of crossbows in the storage.- Specified by:
crossbowAmountPropertyin interfaceIArmory- Returns:
- amount of crossbows in the armory as read only property
-
musketAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty musketAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of musket in the storage.- Specified by:
musketAmountPropertyin interfaceIArmory- Returns:
- amount of muskets in the armory as read only property
-
cutlassAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty cutlassAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of hand weapons in the storage.- Specified by:
cutlassAmountPropertyin interfaceIArmory- Returns:
- amount of cutlass in the armory as read only property
-
trebuchetSmallAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty trebuchetSmallAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of small trebuchet in the storage.- Specified by:
trebuchetSmallAmountPropertyin interfaceIArmory- Returns:
- amount of small trebuchet in the armory as read only property
-
trebuchetBigAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty trebuchetBigAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of big trebuchet in the storage.- Specified by:
trebuchetBigAmountPropertyin interfaceIArmory- Returns:
- amount of big trebuchhet in the armory as read only property
-
ballistaSmallAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty ballistaSmallAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of small ballista in the storage.- Specified by:
ballistaSmallAmountPropertyin interfaceIArmory- Returns:
- amount of small ballista in the armory as read only property
-
ballistaBigAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty ballistaBigAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of big ballista in the storage.- Specified by:
ballistaBigAmountPropertyin interfaceIArmory- Returns:
- amount of big ballista in the armory as read only property
-
bombardAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty bombardAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of bombard in the storage.- Specified by:
bombardAmountPropertyin interfaceIArmory- Returns:
- amount of bombard in the armory as read only property
-
canonAmountProperty
public javafx.beans.property.ReadOnlyIntegerProperty canonAmountProperty()
Description copied from interface:IArmoryProperty holding the amount of canon in the storage.- Specified by:
canonAmountPropertyin interfaceIArmory- Returns:
- amount of canon in the armory as read only property
-
isSwordPriority
public boolean isSwordPriority()
Description copied from interface:IArmoryIndicate that the sword should be produced with priority- Specified by:
isSwordPriorityin interfaceIArmory- Returns:
- true if the sword is prioritized
-
isBowPriority
public boolean isBowPriority()
Description copied from interface:IArmoryIndicate that the bow should be produced with priority- Specified by:
isBowPriorityin interfaceIArmory- Returns:
- true if the bow is prioritized
-
isCrossbowPriority
public boolean isCrossbowPriority()
Description copied from interface:IArmoryIndicate that the crossbow should be produced with priority- Specified by:
isCrossbowPriorityin interfaceIArmory- Returns:
- true if the crossbow is prioritized
-
isMusketPriority
public boolean isMusketPriority()
Description copied from interface:IArmoryIndicate that the musket should be produced with priority- Specified by:
isMusketPriorityin interfaceIArmory- Returns:
- true if the musket is prioritized.
-
toggleSwordPriority
public void toggleSwordPriority()
Description copied from interface:IArmoryToggle the priority of the sword.- Specified by:
toggleSwordPriorityin interfaceIArmory
-
toggleBowPriority
public void toggleBowPriority()
Description copied from interface:IArmoryToggle the priority of the bow.- Specified by:
toggleBowPriorityin interfaceIArmory
-
toggleCrossbowPriority
public void toggleCrossbowPriority()
Description copied from interface:IArmoryToggle the priority of the crossbow.- Specified by:
toggleCrossbowPriorityin interfaceIArmory
-
toggleMusketPriority
public void toggleMusketPriority()
Description copied from interface:IArmoryToggle the priority of the musket.- Specified by:
toggleMusketPriorityin interfaceIArmory
-
updateSwordAmount
public void updateSwordAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of swords by thedeltaamount- Specified by:
updateSwordAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateBowAmount
public void updateBowAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of bows by thedeltaamount- Specified by:
updateBowAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateCrossbowAmount
public void updateCrossbowAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of crossbows by thedeltaamount- Specified by:
updateCrossbowAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateMusketAmount
public void updateMusketAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of musket by thedeltaamount- Specified by:
updateMusketAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateCutlassAmount
public void updateCutlassAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of hand weapon by thedeltaamount- Specified by:
updateCutlassAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateTrebuchetSmallAmount
public void updateTrebuchetSmallAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of small trebuchet by thedeltaamount- Specified by:
updateTrebuchetSmallAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateTrebuchetBigAmount
public void updateTrebuchetBigAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of big trebuchet by thedeltaamount- Specified by:
updateTrebuchetBigAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateBallistaSmallAmount
public void updateBallistaSmallAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of small ballista by thedeltaamount- Specified by:
updateBallistaSmallAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateBallistaBigAmount
public void updateBallistaBigAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of big ballista by thedeltaamount- Specified by:
updateBallistaBigAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateBombardAmount
public void updateBombardAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of bombard by thedeltaamount- Specified by:
updateBombardAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
updateCanonAmount
public void updateCanonAmount(int delta)
Description copied from interface:IArmoryUpdate the amount of canon by thedeltaamount- Specified by:
updateCanonAmountin interfaceIArmory- Parameters:
delta- amount to be changed.
-
gainExperience
public void gainExperience()
Description copied from interface:IArmoryIncrease the experience.- Specified by:
gainExperiencein interfaceIArmory
-
occupiedUntil
public java.time.LocalDateTime occupiedUntil()
Description copied from interface:IArmoryDate until the blacksmith has work.- Specified by:
occupiedUntilin interfaceIArmory- Returns:
- date until the blacksmith is working
-
-