|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.order.result.Result
dip.order.result.OrderResult
dip.order.result.DislodgedResult
Similar to an OrderResult, but allows the optional specification of:
Nested Class Summary |
Nested classes inherited from class dip.order.result.OrderResult |
OrderResult.ResultType |
Field Summary |
Fields inherited from class dip.order.result.OrderResult |
order, resultType |
Fields inherited from class dip.order.result.Result |
message, power |
Constructor Summary | |
DislodgedResult(Orderable order,
Location[] retreatLocations)
|
|
DislodgedResult(Orderable order,
java.lang.String message,
Location[] retreatLocations)
|
Method Summary | |
int |
getAttackStrength()
Returns the attack strength, or -1 if it has not been set. |
int |
getDefenseStrength()
Returns the defense strength, or -1 if it has not been set. |
Province |
getDislodger()
Returns the dislodging units location, or null if it has not been set. |
java.lang.String |
getMessage(OrderFormatOptions ofo)
Creates an appropriate internationalized text message given the set and unset parameters. |
Location[] |
getRetreatLocations()
Returns the valid retreat locations, if set. |
void |
setAttackStrength(int value)
Set the attack strength. |
void |
setDefenseStrength(int value)
Set the defense strength. |
void |
setDislodger(Province value)
Set the dislodger. |
java.lang.String |
toString()
Primarily for debugging. |
Methods inherited from class dip.order.result.OrderResult |
compareTo, getOrder, getResultType |
Methods inherited from class dip.order.result.Result |
getMessage, getPower |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DislodgedResult(Orderable order, Location[] retreatLocations)
public DislodgedResult(Orderable order, java.lang.String message, Location[] retreatLocations)
Method Detail |
public Location[] getRetreatLocations()
public int getAttackStrength()
public int getDefenseStrength()
public Province getDislodger()
public void setAttackStrength(int value)
public void setDefenseStrength(int value)
public void setDislodger(Province value)
null
indicates that this has not been set.
public java.lang.String getMessage(OrderFormatOptions ofo)
getMessage
in class Result
public java.lang.String toString()
toString
in class OrderResult
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |