com.ibm.ruler
Interface IRuler

All Known Implementing Classes:
Ruler

public interface IRuler

This interface is implemented by all rulers.


Method Summary
 ICastle[] getCastles()
          Returns the castles owned by this ruler.
 IKnight[] getKnights()
          Returns this ruler's knights.
 int getOwnedLandCount()
          Returns the number of squares of land this ruler currently owns.
 IPeasant[] getPeasants()
          Returns this ruler's peasants.
 int getPoints()
          Returns the number of points that this ruler has accumulated during this match.
 java.lang.String getRulerName()
          Returns the name of the ruler.
 java.lang.String getSchoolName()
          Returns the name of the school.
 

Method Detail

getCastles

public ICastle[] getCastles()
Returns the castles owned by this ruler. If the ruler has no castles, an empty array will be returned.

Returns:
com.ibm.ruler.ICastle[]

getKnights

public IKnight[] getKnights()
Returns this ruler's knights. If the ruler has no knights, an empty array will be returned.

Returns:
com.ibm.ruler.IKnight[]

getOwnedLandCount

public int getOwnedLandCount()
Returns the number of squares of land this ruler currently owns.

Returns:
int

getPeasants

public IPeasant[] getPeasants()
Returns this ruler's peasants. If the ruler has no peasants, an empty array will be returned.

Returns:
com.ibm.ruler.IPeasant[]

getPoints

public int getPoints()
Returns the number of points that this ruler has accumulated during this match.

Returns:
int

getRulerName

public java.lang.String getRulerName()
Returns the name of the ruler.

Returns:
java.lang.String

getSchoolName

public java.lang.String getSchoolName()
Returns the name of the school.

Returns:
java.lang.String