|
||||||||||
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 ArrayList<LinkFlag> |
getFlags(int flags)
Returns list of flags, which are raised. |
static String |
getFlagsString(int flags)
|
boolean |
isSet(int flag)
|
static LinkFlag |
valueOf(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(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int get()
public boolean isSet(int flag)
flag
-
public static ArrayList<LinkFlag> getFlags(int flags)
flags
-
public static String getFlagsString(int flags)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |