public enum Terrain extends Enum<Terrain>
Enum Constant and Description |
---|
FOG |
GLASS_WALL |
NONE |
PIT |
WALL |
Modifier and Type | Method and Description |
---|---|
boolean |
blocksLineOfSight() |
String |
getDisplayName() |
boolean |
preventsMovement() |
static Terrain |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Terrain[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Terrain GLASS_WALL
public static Terrain[] values()
for (Terrain c : Terrain.values()) System.out.println(c);
public static Terrain 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 String getDisplayName()
public boolean preventsMovement()
public boolean blocksLineOfSight()
Java Examples available from http://www.basilv.com/psd/software Copyright © 2009 by Basil Vandegriend. All Rights Reserved.