Interface IArmory
-
- All Known Implementing Classes:
Armory
public interface IArmory- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Jul 23, 2017
-
-
Method Summary
All Methods Instance Methods Abstract 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.doublegetExperience()Retrieve the experience of the blacksmith.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
-
-
-
Method Detail
-
swordAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty swordAmountProperty()
Property holding the amount of swords in the storage.- Returns:
- amount of swords in the armory as read only property
-
bowAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty bowAmountProperty()
Property holding the amount of bows in the storage.- Returns:
- amount of bows in the armory as read only property
-
crossbowAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty crossbowAmountProperty()
Property holding the amount of crossbows in the storage.- Returns:
- amount of crossbows in the armory as read only property
-
musketAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty musketAmountProperty()
Property holding the amount of musket in the storage.- Returns:
- amount of muskets in the armory as read only property
-
cutlassAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty cutlassAmountProperty()
Property holding the amount of hand weapons in the storage.- Returns:
- amount of cutlass in the armory as read only property
-
trebuchetSmallAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty trebuchetSmallAmountProperty()
Property holding the amount of small trebuchet in the storage.- Returns:
- amount of small trebuchet in the armory as read only property
-
trebuchetBigAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty trebuchetBigAmountProperty()
Property holding the amount of big trebuchet in the storage.- Returns:
- amount of big trebuchhet in the armory as read only property
-
ballistaSmallAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty ballistaSmallAmountProperty()
Property holding the amount of small ballista in the storage.- Returns:
- amount of small ballista in the armory as read only property
-
ballistaBigAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty ballistaBigAmountProperty()
Property holding the amount of big ballista in the storage.- Returns:
- amount of big ballista in the armory as read only property
-
bombardAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty bombardAmountProperty()
Property holding the amount of bombard in the storage.- Returns:
- amount of bombard in the armory as read only property
-
canonAmountProperty
javafx.beans.property.ReadOnlyIntegerProperty canonAmountProperty()
Property holding the amount of canon in the storage.- Returns:
- amount of canon in the armory as read only property
-
isSwordPriority
boolean isSwordPriority()
Indicate that the sword should be produced with priority- Returns:
- true if the sword is prioritized
-
isBowPriority
boolean isBowPriority()
Indicate that the bow should be produced with priority- Returns:
- true if the bow is prioritized
-
isCrossbowPriority
boolean isCrossbowPriority()
Indicate that the crossbow should be produced with priority- Returns:
- true if the crossbow is prioritized
-
isMusketPriority
boolean isMusketPriority()
Indicate that the musket should be produced with priority- Returns:
- true if the musket is prioritized.
-
toggleSwordPriority
void toggleSwordPriority()
Toggle the priority of the sword.
-
toggleBowPriority
void toggleBowPriority()
Toggle the priority of the bow.
-
toggleCrossbowPriority
void toggleCrossbowPriority()
Toggle the priority of the crossbow.
-
toggleMusketPriority
void toggleMusketPriority()
Toggle the priority of the musket.
-
updateSwordAmount
void updateSwordAmount(int delta)
Update the amount of swords by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateBowAmount
void updateBowAmount(int delta)
Update the amount of bows by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateCrossbowAmount
void updateCrossbowAmount(int delta)
Update the amount of crossbows by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateMusketAmount
void updateMusketAmount(int delta)
Update the amount of musket by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateCutlassAmount
void updateCutlassAmount(int delta)
Update the amount of hand weapon by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateTrebuchetSmallAmount
void updateTrebuchetSmallAmount(int delta)
Update the amount of small trebuchet by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateTrebuchetBigAmount
void updateTrebuchetBigAmount(int delta)
Update the amount of big trebuchet by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateBallistaSmallAmount
void updateBallistaSmallAmount(int delta)
Update the amount of small ballista by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateBallistaBigAmount
void updateBallistaBigAmount(int delta)
Update the amount of big ballista by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateBombardAmount
void updateBombardAmount(int delta)
Update the amount of bombard by thedeltaamount- Parameters:
delta- amount to be changed.
-
updateCanonAmount
void updateCanonAmount(int delta)
Update the amount of canon by thedeltaamount- Parameters:
delta- amount to be changed.
-
getExperience
double getExperience()
Retrieve the experience of the blacksmith.- Returns:
- experience in [0,1]
-
gainExperience
void gainExperience()
Increase the experience.
-
occupiedUntil
java.time.LocalDateTime occupiedUntil()
Date until the blacksmith has work.- Returns:
- date until the blacksmith is working
-
occupy
void occupy(java.time.LocalDateTime date)
Date in the future until which the blacksmith has work.- Parameters:
date- set the date until the blacksmith is working
-
-