|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dip.order.result.Result dip.order.result.OrderResult dip.order.result.BouncedResult
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 | |
BouncedResult(Orderable order)
|
Method Summary | |
int |
getAttackStrength()
Returns the attack strength, or -1 if it has not been set. |
Province |
getBouncer()
Returns the location of the unit with whom we bounced, or null if it has not been set. |
int |
getDefenseStrength()
Returns the defense strength, or -1 if it has not been set. |
java.lang.String |
getMessage(OrderFormatOptions ofo)
Creates an appropriate internationalized text message given the set and unset parameters. |
void |
setAttackStrength(int value)
Set the attack strength. |
void |
setBouncer(Province value)
Set the unit which which we had bounced. |
void |
setDefenseStrength(int value)
Set the defense strength. |
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 BouncedResult(Orderable order)
Method Detail |
public int getAttackStrength()
public int getDefenseStrength()
public Province getBouncer()
public void setAttackStrength(int value)
public void setDefenseStrength(int value)
public void setBouncer(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 |