public enum LinkFlag extends Enum<LinkFlag>
Use getFlags() to obtain the list of enums from a particular integer.
Enum Constant and Description |
---|
DOOR |
FLY |
FORCED |
JUMP |
LADDER |
PLAYERONLY |
PROSCRIBED |
SPECIAL |
SWIM |
WALK |
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- 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)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.