public class Country extends java.lang.Object implements XMLSerializable, IDable
Constructor and Description |
---|
Country() |
Country(org.xml.sax.Attributes att) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.awt.Point p) |
boolean |
equals(java.lang.Object other) |
java.util.List |
getAdjoiningList()
Returns the List of countries that can be reached from this one.
|
int |
getBonus() |
java.awt.Rectangle |
getBounds() |
java.awt.Point |
getCenter() |
float |
getContinentBonusPartial(VoxWorld world) |
int |
getContinentID() |
int |
getID() |
java.awt.Point |
getLabelLocation() |
java.lang.String |
getName() |
Player |
getOwner() |
Team |
getTeam() |
UnitStackGroup |
getUnitStackGroup() |
UnitStack |
getUnitStackMatching(UnitStack matcher)
This will return the UnitStack that matches the type and player of the given one.
|
boolean |
hasCastle()
Has any Castle?
|
boolean |
hasCastle(Player owner)
Has a Castle owned by the given player?
|
boolean |
isEmpty()
Returns true if the country has 0 units in it.
|
java.lang.String |
toString() |
java.lang.String |
toStringWithUnits() |
java.lang.String |
toStringXML() |
public boolean contains(java.awt.Point p)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.util.List getAdjoiningList()
public int getBonus()
public java.awt.Rectangle getBounds()
public java.awt.Point getCenter()
public float getContinentBonusPartial(VoxWorld world)
public int getContinentID()
public java.awt.Point getLabelLocation()
public java.lang.String getName()
public Player getOwner()
public Team getTeam()
public UnitStackGroup getUnitStackGroup()
public UnitStack getUnitStackMatching(UnitStack matcher)
public boolean hasCastle()
public boolean hasCastle(Player owner)
public boolean isEmpty()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringWithUnits()
public java.lang.String toStringXML()
toStringXML
in interface XMLSerializable