rl.common.game.elements
Enum BayWeapon.RangeBands
java.lang.Object
java.lang.Enum<BayWeapon.RangeBands>
rl.common.game.elements.BayWeapon.RangeBands
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BayWeapon.RangeBands>
- Enclosing class:
- BayWeapon
public static enum BayWeapon.RangeBands
- extends java.lang.Enum<BayWeapon.RangeBands>
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
HEX1
public static final BayWeapon.RangeBands HEX1
HEX2_3
public static final BayWeapon.RangeBands HEX2_3
HEX4_6
public static final BayWeapon.RangeBands HEX4_6
HEX7_10
public static final BayWeapon.RangeBands HEX7_10
HEX11_15
public static final BayWeapon.RangeBands HEX11_15
HEX16_20
public static final BayWeapon.RangeBands HEX16_20
values
public static BayWeapon.RangeBands[] 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 (BayWeapon.RangeBands c : BayWeapon.RangeBands.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BayWeapon.RangeBands 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
fromDistance
public static BayWeapon.RangeBands fromDistance(int distance)
getMaxRange
public int getMaxRange()