|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Adjudicator interface.
Method Summary | |
void |
addBouncedResult(OrderState os,
OrderState bouncer)
Add a BouncedResult to the result list |
void |
addDislodgedResult(OrderState os)
Add a DislodgedResult to the result list |
void |
addResult(OrderState os,
OrderResult.ResultType type,
java.lang.String message)
Add a Result to the result list |
void |
addResult(OrderState os,
java.lang.String message)
Add a Result to the result list |
void |
addResult(Result result)
Add a Result to the result list |
OrderState |
findOrderStateBySrc(Location location)
Find the OrderState with the given source Province. |
OrderState |
findOrderStateBySrc(Province src)
Find the OrderState with the given source Province. |
TurnState |
getNextTurnState()
Returns the next TurnState, or null
if an error occured or the game has been won. |
OrderState[] |
getOrderStates()
Get all OrderStates |
java.util.List |
getSubstitutedOrderStates()
Returns a list of substituted orders. |
TurnState |
getTurnState()
Get the TurnState that is currently being adjudicated, and that will have its results and flags set appropriately when adjudication is complete. |
boolean |
isSelfSupportedMove(OrderState os)
Returns 'true' if The Orderstate in question is a support order that is supporting a move against itself. |
boolean |
isUnresolvedParadox()
Returns true if an unresolved paradox was detected. |
void |
process()
Start adjudication. |
void |
setPowerOrderChecking(boolean value)
If enabled, checks to make sure that each Power's list of orders only contains orders from that Power. |
void |
setStatReporting(boolean value)
Enable or disable reporting of failure statistics. |
Method Detail |
public TurnState getTurnState()
public void process()
public boolean isUnresolvedParadox()
true
if an unresolved paradox was detected.
public TurnState getNextTurnState()
null
if an error occured or the game has been won.
public void setStatReporting(boolean value)
public void setPowerOrderChecking(boolean value)
public OrderState findOrderStateBySrc(Location location)
public OrderState findOrderStateBySrc(Province src)
public OrderState[] getOrderStates()
public boolean isSelfSupportedMove(OrderState os)
public java.util.List getSubstitutedOrderStates()
public void addResult(Result result)
public void addBouncedResult(OrderState os, OrderState bouncer)
public void addDislodgedResult(OrderState os)
public void addResult(OrderState os, java.lang.String message)
public void addResult(OrderState os, OrderResult.ResultType type, java.lang.String message)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |