Interface IArmory

  • All Known Implementing Classes:
    Armory

    public interface IArmory
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Jul 23, 2017
    • 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 the delta amount
        Parameters:
        delta - amount to be changed.
      • updateBowAmount

        void updateBowAmount​(int delta)
        Update the amount of bows by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateCrossbowAmount

        void updateCrossbowAmount​(int delta)
        Update the amount of crossbows by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateMusketAmount

        void updateMusketAmount​(int delta)
        Update the amount of musket by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateCutlassAmount

        void updateCutlassAmount​(int delta)
        Update the amount of hand weapon by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateTrebuchetSmallAmount

        void updateTrebuchetSmallAmount​(int delta)
        Update the amount of small trebuchet by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateTrebuchetBigAmount

        void updateTrebuchetBigAmount​(int delta)
        Update the amount of big trebuchet by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateBallistaSmallAmount

        void updateBallistaSmallAmount​(int delta)
        Update the amount of small ballista by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateBallistaBigAmount

        void updateBallistaBigAmount​(int delta)
        Update the amount of big ballista by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateBombardAmount

        void updateBombardAmount​(int delta)
        Update the amount of bombard by the delta amount
        Parameters:
        delta - amount to be changed.
      • updateCanonAmount

        void updateCanonAmount​(int delta)
        Update the amount of canon by the delta amount
        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