cz.cuni.pogamut.MessageObjects
Enum NeighNavFlag
java.lang.Object
java.lang.Enum<NeighNavFlag>
cz.cuni.pogamut.MessageObjects.NeighNavFlag
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<NeighNavFlag>
public enum NeighNavFlag
- extends java.lang.Enum<NeighNavFlag>
This is enum for edge flag between navpoints.
Each navpoint has a list of neighbour navpoints (NeighNav), each
neighbour navpoints has also property flag which is int.
Here is the list of respective bits according to http://wiki.beyondunreal.com/wiki/ReachSpec
Field Summary |
private int |
flag
|
Method Summary |
int |
get()
Returns integer of the flag. |
static java.util.ArrayList<NeighNavFlag> |
getFlags(int flags)
Returns list of flags, which are raised. |
static java.lang.String |
getFlagsString(int flags)
|
boolean |
isSet(int flag)
|
static NeighNavFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NeighNavFlag[] |
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 class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
WALK
public static final NeighNavFlag WALK
FLY
public static final NeighNavFlag FLY
SWIM
public static final NeighNavFlag SWIM
JUMP
public static final NeighNavFlag JUMP
DOOR
public static final NeighNavFlag DOOR
SPECIAL
public static final NeighNavFlag SPECIAL
LADDER
public static final NeighNavFlag LADDER
PROSCRIBED
public static final NeighNavFlag PROSCRIBED
FORCED
public static final NeighNavFlag FORCED
PLAYERONLY
public static final NeighNavFlag PLAYERONLY
flag
private int flag
values
public static NeighNavFlag[] 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 (NeighNavFlag c : NeighNavFlag.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NeighNavFlag 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
get
public int get()
- Returns integer of the flag.
isSet
public boolean isSet(int flag)
- Parameters:
flag
-
- Returns:
- whether the flag is raised.
getFlags
public static java.util.ArrayList<NeighNavFlag> getFlags(int flags)
- Returns list of flags, which are raised.
- Parameters:
flags
-
- Returns:
- list of raised flags
getFlagsString
public static java.lang.String getFlagsString(int flags)