|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<LinkFlag> cz.cuni.amis.pogamut.ut2004.utils.LinkFlag
public enum LinkFlag
This is enum for edge flag between navpoints.
Each navpoint has a list of neighbour navpoints (getOutgoingEdges()), each
edge (NavPointNeighbourLink instance) has also property flag (getFlag())
Here is the list of respective bits according to http://wiki.beyondunreal.com/wiki/ReachSpec
Use getFlags() to obtain the list of enums from a particular integer.
Enum Constant Summary | |
---|---|
DOOR
|
|
FLY
|
|
FORCED
|
|
JUMP
|
|
LADDER
|
|
PLAYERONLY
|
|
PROSCRIBED
|
|
SPECIAL
|
|
SWIM
|
|
WALK
|
Method Summary | |
---|---|
int |
get()
Returns integer of the flag. |
static java.util.ArrayList<LinkFlag> |
getFlags(int flags)
Returns list of flags, which are raised. |
static java.lang.String |
getFlagsString(int flags)
|
boolean |
isSet(int flag)
|
static LinkFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static LinkFlag[] |
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 |
Enum Constant Detail |
---|
public static final LinkFlag WALK
public static final LinkFlag FLY
public static final LinkFlag SWIM
public static final LinkFlag JUMP
public static final LinkFlag DOOR
public static final LinkFlag SPECIAL
public static final LinkFlag LADDER
public static final LinkFlag PROSCRIBED
public static final LinkFlag FORCED
public static final LinkFlag PLAYERONLY
Method Detail |
---|
public static LinkFlag[] values()
for (LinkFlag c : LinkFlag.values()) System.out.println(c);
public static LinkFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int get()
public boolean isSet(int flag)
flag
-
public static java.util.ArrayList<LinkFlag> getFlags(int flags)
flags
-
public static java.lang.String getFlagsString(int flags)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |