public enum TownBlockType extends java.lang.Enum<TownBlockType>
Enum Constant and Description |
---|
ARENA |
COMMERCIAL |
EMBASSY |
RESIDENTIAL |
SPLEEF |
WILDS |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAsciiMapKey() |
int |
getId() |
double |
getTax(Town town) |
static TownBlockType |
lookup(int id) |
static TownBlockType |
lookup(java.lang.String name) |
java.lang.String |
toString() |
static TownBlockType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TownBlockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TownBlockType RESIDENTIAL
public static final TownBlockType COMMERCIAL
public static final TownBlockType ARENA
public static final TownBlockType EMBASSY
public static final TownBlockType WILDS
public static final TownBlockType SPLEEF
public static TownBlockType[] values()
for (TownBlockType c : TownBlockType.values()) System.out.println(c);
public static TownBlockType 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 java.lang.String toString()
toString
in class java.lang.Enum<TownBlockType>
public double getTax(Town town)
public int getId()
public java.lang.String getAsciiMapKey()
public static TownBlockType lookup(int id)
public static TownBlockType lookup(java.lang.String name)