|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectdip.process.StdAdjudicator
StdAjudicator is adjudicates all phases of a typical game, using the standard rule set, as well as enhancements indicated in the DPTG and DATC.
This is a pretty large class, and could be split into 3 separate classes (1 for each phase).
| Constructor Summary | |
StdAdjudicator(OrderFactory orderFactory,
TurnState ts)
Create a Adjudicator for the Standard rules, that will evaluate all Orders for the current TurnState. |
|
| 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()
This may return null, if the game has ended and victory conditions have been met during the Adjustment phase. |
OrderState[] |
getOrderStates()
Get all OrderStates |
java.util.List |
getSubstitutedOrderStates()
Returns a list of substituted orders. |
TurnState |
getTurnState()
Get the TurnState |
boolean |
isSelfSupportedMove(OrderState os)
Returns 'true' if The Orderstate in question is a support order that is supporting a move against itself. |
boolean |
isUnresolvedParadox()
If an unresolved paradox was detected, this returns true. |
void |
process()
Process the orders. |
void |
setOrderFormat(OrderFormatOptions ofo)
Sets the order formatting options |
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. |
protected void |
verifyOrders()
Verifies orders in a loop. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StdAdjudicator(OrderFactory orderFactory,
TurnState ts)
| Method Detail |
public void process()
process in interface Adjudicatorpublic void setOrderFormat(OrderFormatOptions ofo)
public void setStatReporting(boolean value)
setStatReporting in interface Adjudicatorpublic void setPowerOrderChecking(boolean value)
setPowerOrderChecking in interface Adjudicatorpublic final OrderState[] getOrderStates()
getOrderStates in interface Adjudicatorpublic final TurnState getTurnState()
getTurnState in interface Adjudicatorpublic final OrderState findOrderStateBySrc(Location location)
findOrderStateBySrc in interface Adjudicatorpublic final OrderState findOrderStateBySrc(Province src)
findOrderStateBySrc in interface Adjudicatorpublic final boolean isSelfSupportedMove(OrderState os)
isSelfSupportedMove in interface Adjudicatorpublic java.util.List getSubstitutedOrderStates()
getSubstitutedOrderStates in interface Adjudicatorpublic final void addResult(Result result)
addResult in interface Adjudicator
public final void addBouncedResult(OrderState os,
OrderState bouncer)
addBouncedResult in interface Adjudicatorpublic final void addDislodgedResult(OrderState os)
addDislodgedResult in interface Adjudicator
public final void addResult(OrderState os,
java.lang.String message)
addResult in interface Adjudicator
public final void addResult(OrderState os,
OrderResult.ResultType type,
java.lang.String message)
addResult in interface Adjudicatorpublic TurnState getNextTurnState()
getNextTurnState in interface Adjudicatorpublic boolean isUnresolvedParadox()
isUnresolvedParadox in interface Adjudicatorprotected void verifyOrders()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||