game.military
Class CarryOrder

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

public class CarryOrder
extends UnitOrder

Order to be able to carry troops.


Field Summary
static CarryOrder ORDER
           
 
Fields inherited from class game.military.UnitOrder
FRONT, RESERVE, SUPPORT
 
Method Summary
 float getDefenseBonus()
          Carry 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 CarryOrder 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()
Carry means some defense has been put up, thus this method returns 1.

Overrides:
getDefenseBonus in class UnitOrder