nl.tudelft.goal.ut2004.messages
Enum FireMode
java.lang.Object
java.lang.Enum<FireMode>
nl.tudelft.goal.ut2004.messages.FireMode
- All Implemented Interfaces:
- Serializable, Comparable<FireMode>
public enum FireMode
- extends Enum<FireMode>
PRIMARY
public static final FireMode PRIMARY
SECONDARY
public static final FireMode SECONDARY
NONE
public static final FireMode NONE
values
public static FireMode[] 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 (FireMode c : FireMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FireMode valueOf(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
isPrimary
public boolean isPrimary()
id
public int id()
valueOfIgnoreCase
public static FireMode valueOfIgnoreCase(String firemode)
valueOf
public static Object valueOf(Boolean primaryShooting,
Boolean secondaryShooting)
valueOf
public static Object valueOf(int mode)
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.