Enum EWeapon
- java.lang.Object
-
- java.lang.Enum<EWeapon>
-
- ch.sahits.game.openpatrician.model.weapon.EWeapon
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BALLISTA_BIGBALLISTA_SMALLBOMBARDBOWCANNONCROSSBOWHAND_WEAPONMUSKETSWORDTREBUCHET_BIGTREBUCHET_SMALL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EWeaponvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EWeapon[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface ch.sahits.game.openpatrician.model.product.ITradable
getBuyCurve, getMarketSaturationForBuying, getMarketSaturationForSelling, getMaxValueBuy, getMaxValueSell, getMinValueBuy, getMinValueSell, getSellCurve, name
-
-
-
-
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
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
-