public static enum Collidable.Collidability extends java.lang.Enum<Collidable.Collidability>
Enum Constant and Description |
---|
ALL
All collisions (both self and external) enabled: the Collidable may
collide with any other Collidable.
|
EXTERNAL
External collisions enabled: the Collidable may only collide with
other Collidables with which it does notshare a common
ancestor.
|
INTERNAL
Internal (self) collisions enabled: the Collidable may only collide
with other Collidables with which it shares a common ancestor.
|
OFF
All collisions disabled: the Collidable will not collide with
anything.
|
Modifier and Type | Method and Description |
---|---|
static Collidable.Collidability |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Collidable.Collidability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Collidable.Collidability OFF
public static final Collidable.Collidability INTERNAL
public static final Collidable.Collidability EXTERNAL
public static final Collidable.Collidability ALL
public static Collidable.Collidability[] values()
for (Collidable.Collidability c : Collidable.Collidability.values()) System.out.println(c);
public static Collidable.Collidability 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 namejava.lang.NullPointerException
- if the argument is null