com.ibm.ruler
Interface IKnight

All Superinterfaces:
IObject

public interface IKnight
extends IObject

This interface is implemented by all knights. It defines only one new method. See the IObject interface for information on inherited methods.


Method Summary
 int getStrength()
          Returns the strength left in this knight.
 
Methods inherited from interface com.ibm.ruler.IObject
getDirectionTo, getDistanceTo, getId, getRuler, getX, getY, isAlive
 

Method Detail

getStrength

public int getStrength()
Returns the strength left in this knight. The initial strength of all knights is 100, and they lose between 15 and 30 strength when they are attacked, and gain 20 for each knight that they defeat.

Returns:
int