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_BIG
BALLISTA_SMALL
BOMBARD
BOW
CANNON
CROSSBOW
HAND_WEAPON
MUSKET
SWORD
TREBUCHET_BIG
TREBUCHET_SMALL
-
Field Summary
Fields Modifier and Type Field Description private IBezierPriceCurve
buyCurve
private double
damage
private double
kill
private int
marketSaturationForBuying
private int
marketSaturationForSelling
private int
maxValueBuy
private int
maxValueSell
private int
minValueBuy
private int
minValueSell
private int
range
private IBezierPriceCurve
sellCurve
private double
size
private double
strength
-
Constructor Summary
Constructors Modifier Constructor Description private
EWeapon(java.lang.String configFileName)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EWeapon
valueOf(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
-
-
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
-
buyCurve
private final IBezierPriceCurve buyCurve
-
sellCurve
private final IBezierPriceCurve sellCurve
-
-
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
-
-