|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.hagenah.diplomacy.map.Coast
public class Coast
The order is also the order for compareTo.
| Field Summary | |
|---|---|
static int |
COAST_MAX
Last real coast |
static int |
COAST_MIN
First real coast |
static int |
EAST
East coast, ec |
static int |
LAND
Land, mv |
static int |
NORTH
North coast, nc |
static int |
SEA
Sea, xc |
static int |
SOUTH
South coast, sc |
static int |
WEST
West coast, wc |
| Method Summary | |
|---|---|
static int |
getCoast(java.lang.String name)
Returns the coast for a string. |
static java.lang.String |
getCoastAbbreviation(int coast)
Returns a short string for a coast. |
static java.lang.String |
getCoastName(int coast)
Returns a long string for a coast. |
static java.lang.String |
getCoastShortName(int coast)
Returns a short string for a coast. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LAND
public static final int SEA
public static final int EAST
public static final int NORTH
public static final int SOUTH
public static final int WEST
public static final int COAST_MIN
public static final int COAST_MAX
| Method Detail |
|---|
public static int getCoast(java.lang.String name)
throws java.lang.IllegalArgumentException
name - Name of the coast (mv, xc, nc, sc, wc, es, north coast, south coast,
west coast, east coast).
java.lang.IllegalArgumentExceptionCoast
public static java.lang.String getCoastName(int coast)
throws java.lang.IllegalArgumentException
coast - A value of the Coast enumeration.
java.lang.IllegalArgumentExceptionCoast
public static java.lang.String getCoastShortName(int coast)
throws java.lang.IllegalArgumentException
coast - A value of the Coast enumeration.
java.lang.IllegalArgumentExceptionCoast
public static java.lang.String getCoastAbbreviation(int coast)
throws java.lang.IllegalArgumentException
coast - A value of the Coast enumeration.
java.lang.IllegalArgumentExceptionCoast
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||