public enum Spot extends java.lang.Enum<Spot> implements Representable, Passable
| Enum Constant and Description |
|---|
Exit |
Open |
SignE |
SignN |
SignS |
SignW |
Wall |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
repr |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookThrough() |
boolean |
canPassThrough() |
boolean |
isSign() |
java.lang.String |
repr() |
java.lang.String |
toString() |
static Spot |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Spot[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Spot Open
public static final Spot Wall
public static final Spot Exit
public static final Spot SignN
public static final Spot SignE
public static final Spot SignS
public static final Spot SignW
public static Spot[] values()
for (Spot c : Spot.values()) System.out.println(c);
public static Spot 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 nullpublic boolean isSign()
public java.lang.String toString()
toString in class java.lang.Enum<Spot>public java.lang.String repr()
repr in interface Representablepublic boolean canLookThrough()
canLookThrough in interface Passablepublic boolean canPassThrough()
canPassThrough in interface Passable