de.hagenah.diplomacy.map
Class Country

java.lang.Object
  extended by de.hagenah.diplomacy.map.Person
      extended by de.hagenah.diplomacy.map.Country
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public final class Country
extends Person

The Country class represent a power, e.g. Germany in Standard.

See Also:
Serialized Form

Field Summary
static int TOSTRING_OWNER
          Returns the name of the country as owner e.g.
 
Fields inherited from class de.hagenah.diplomacy.map.Person
MASTER, OBSERVER, POWER, TOSTRING_CSS, TOSTRING_HTML, TOSTRING_SHORT
 
Method Summary
 java.lang.String getOwnerName()
          Returns the name of the country as owner (e.g.
 java.util.SortedSet getStartCenters()
          Returns all start center Provinces.
 java.util.SortedSet getStartUnits()
          Returns all start unit SubProvinces.
 java.lang.String toString(int flags)
          Return a text for the country (e.g.
 
Methods inherited from class de.hagenah.diplomacy.map.Person
compareTo, equals, getAbbreviation, getColor, getName, hashCode, isMaster, isObserver, isPower, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TOSTRING_OWNER

public static final int TOSTRING_OWNER
Returns the name of the country as owner e.g. Turkish

See Also:
Constant Field Values
Method Detail

getOwnerName

public java.lang.String getOwnerName()
Returns the name of the country as owner (e.g. Turkish).


getStartCenters

public java.util.SortedSet getStartCenters()
Returns all start center Provinces.


getStartUnits

public java.util.SortedSet getStartUnits()
Returns all start unit SubProvinces.


toString

public java.lang.String toString(int flags)
Return a text for the country (e.g. Austria)

Overrides:
toString in class Person
Parameters:
flags - TOSTRING_SHORT, TOSTRING_HTML, TOSTRING_CSS, TOSTRING_OWNER
Returns:
The text