|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Contains useful constants for the Fishbanks game. FishbanksConstants is a helper interface that contains a bunch of static constants, mostly keys that refer to attribute names. The reason for this interface is so that a class can implement the interface and automatically get at the constants. (This is something of an abuse of interfaces, but it works and simplifies the code).
These constants should be used rather than strings for attribute and layer names so that the names can change without requiring major changes throughout the code. It avoids the hard-coding of attribute names.
Field Summary | |
static java.lang.String |
BOAT
Attribute key for a cell or layer's boat. |
static java.lang.String |
COASTAL_WATERS
Name of the coastal waters layer. |
static java.lang.String |
DEEP_OCEAN
Name of the deep ocean layer. |
static java.lang.String |
HARBOR
Name of the harbor layer. |
static java.lang.String |
LAND
The attribute value for land type if the current cell represents land or water. |
static java.lang.String |
TYPE
Attribute key for a cell's type. |
Field Detail |
public static final java.lang.String LAND
public static final java.lang.String TYPE
public static final java.lang.String BOAT
public static final java.lang.String DEEP_OCEAN
public static final java.lang.String COASTAL_WATERS
public static final java.lang.String HARBOR
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |