|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--game.military.UnitOrder
|
+--game.military.AttackOrder
Order to attack a given square. Unit will move to the square and attack it if the odds are sufficient.
| Field Summary | |
static AttackOrder |
ORDER
|
| Fields inherited from class game.military.UnitOrder |
FRONT, RESERVE, SUPPORT |
| Method Summary | |
java.lang.String |
getName()
Returns the order name. |
float |
getOddsToAttack()
Attacks if odds are no worse than this. |
float |
healRate()
Rate at which units heal. |
void |
setOddsToAttack(float newOdds)
|
| Methods inherited from class game.military.UnitOrder |
get, getDefenseBonus, getOddsToDefend, getPreferredPosition, setOddsToDefend |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static AttackOrder ORDER
| Method Detail |
public void setOddsToAttack(float newOdds)
public float getOddsToAttack()
getOddsToAttack in class UnitOrderpublic float healRate()
healRate in class UnitOrderpublic java.lang.String getName()
getName in class UnitOrder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||