Enum BankLocation

    • Method Detail

      • values

        public static BankLocation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (BankLocation c : BankLocation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BankLocation valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNearest

        public static BankLocation getNearest​(Entity entity)
        Gets the nearest BankLocation to the entity
        Parameters:
        entity - Entity to find nearest BankLocation to.
        Returns:
        BankLocation that is closest to Entity
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<BankLocation>
      • getCenter

        public Tile getCenter()
        Gets the center Tile of the bank
        Returns:
        Tile of the center of the bank
      • getBankType

        public BankType getBankType()
        Gets the BankType
        Returns:
        BankType
      • getCondition

        public Condition getCondition()
        Gets any requirements needed to access this bank
        Returns:
        Requirements condition
      • getArea

        public Area getArea​(int radius)
        Generates an Area around the center Tile based on radius
        Parameters:
        radius - Radius of the Area
        Returns:
        Area generated around Bank's center Tile
      • getTile

        public Tile getTile()
        Description copied from interface: Locatable
        Gets tile of the object.
        Specified by:
        getTile in interface Locatable
        Returns:
        the object tile.