Enum EWeapon

  • All Implemented Interfaces:
    IAmountable, ITradable, IWeapon, java.io.Serializable, java.lang.Comparable<EWeapon>

    public enum EWeapon
    extends java.lang.Enum<EWeapon>
    implements IWeapon
    Enumeration defining all weapons
    Author:
    Andi Hotz, (c) Sahits GmbH, 2011 Created on Dec 23, 2011
    • Enum Constant Detail

      • SWORD

        public static final EWeapon SWORD
      • BOW

        public static final EWeapon BOW
      • CROSSBOW

        public static final EWeapon CROSSBOW
      • MUSKET

        public static final EWeapon MUSKET
      • BALLISTA_SMALL

        public static final EWeapon BALLISTA_SMALL
      • TREBUCHET_SMALL

        public static final EWeapon TREBUCHET_SMALL
      • BALLISTA_BIG

        public static final EWeapon BALLISTA_BIG
      • TREBUCHET_BIG

        public static final EWeapon TREBUCHET_BIG
      • BOMBARD

        public static final EWeapon BOMBARD
      • CANNON

        public static final EWeapon CANNON
      • HAND_WEAPON

        public static final EWeapon HAND_WEAPON
    • Field Detail

      • maxValueBuy

        private final int maxValueBuy
      • minValueBuy

        private final int minValueBuy
      • maxValueSell

        private final int maxValueSell
      • minValueSell

        private final int minValueSell
      • marketSaturationForSelling

        private final int marketSaturationForSelling
      • marketSaturationForBuying

        private final int marketSaturationForBuying
      • strength

        private final double strength
      • size

        private final double size
      • damage

        private final double damage
      • kill

        private final double kill
      • range

        private final int range
    • Constructor Detail

      • EWeapon

        private EWeapon​(java.lang.String configFileName)
    • Method Detail

      • values

        public static EWeapon[] 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 (EWeapon c : EWeapon.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EWeapon 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