game.military
Class BreachOrder

java.lang.Object
  |
  +--game.military.UnitOrder
        |
        +--game.military.BreachOrder

public class BreachOrder
extends UnitOrder

Order to breach fortifications during a siege.


Field Summary
static BreachOrder ORDER
           
 
Fields inherited from class game.military.UnitOrder
FRONT, RESERVE, SUPPORT
 
Method Summary
 java.lang.String getName()
          Returns the order name.
 int getPreferredPosition()
          This may not always be accurate since rams are rather front.
 float healRate()
          Rate at which units heal.
 
Methods inherited from class game.military.UnitOrder
get, getDefenseBonus, getOddsToAttack, getOddsToDefend, setOddsToDefend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDER

public static BreachOrder ORDER
Method Detail

healRate

public float healRate()
Rate at which units heal. It is the ratio of max health recovered at end of turn.

Specified by:
healRate in class UnitOrder

getName

public java.lang.String getName()
Returns the order name.

Specified by:
getName in class UnitOrder

getPreferredPosition

public int getPreferredPosition()
This may not always be accurate since rams are rather front. Oh well...

Overrides:
getPreferredPosition in class UnitOrder