game.military
Class BuildOrder

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

public class BuildOrder
extends UnitOrder

Order to build fortifications in a given square.


Field Summary
static BuildOrder ORDER
           
 
Fields inherited from class game.military.UnitOrder
FRONT, RESERVE, SUPPORT
 
Method Summary
 float getDefenseBonus()
          Build means some defense has been put up, thus this method returns 1.
 java.lang.String getName()
          Returns the order name.
 float healRate()
          Rate at which units heal.
 
Methods inherited from class game.military.UnitOrder
get, getOddsToAttack, getOddsToDefend, getPreferredPosition, setOddsToDefend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDER

public static BuildOrder 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

getDefenseBonus

public float getDefenseBonus()
Build means some defense has been put up, thus this method returns 1.

Overrides:
getDefenseBonus in class UnitOrder