|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use OrderException | |
dip.gui | |
dip.gui.order | |
dip.order | |
dip.world |
Uses of OrderException in dip.gui |
Methods in dip.gui that throw OrderException | |
void |
OrderDisplayPanel.addOrderRaw(java.lang.String orderText,
boolean undoable)
Parses and then adds an order to the TurnState, possibly with undo/redo support, and only succeeding if the order passes validation given the validation constraints. |
void |
OrderDisplayPanel.addOrderRaw(Orderable order,
boolean undoable)
Add an order to the TurnState, possibly with undo/redo support, and only succeeding if the order passes validation given the validation constraints. |
Uses of OrderException in dip.gui.order |
Methods in dip.gui.order that throw OrderException | |
DefineState |
GUIOrderFactory.createDefineState(Power power,
Location source,
Unit.Type sourceUnitType)
Creates a GUIDefineState order |
Constructors in dip.gui.order that throw OrderException | |
GUIDefineState(Power power,
Location source,
Unit.Type sourceUnitType)
Creates a GUIDefineState |
Uses of OrderException in dip.order |
Subclasses of OrderException in dip.order | |
class |
OrderWarning
This is a special type of OrderException that is given for possibly ambiguous orders. |
Methods in dip.order that throw OrderException | |
void |
Waive.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
Very little is done to validate Waive orders; we only check the power and season. |
void |
Support.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
|
void |
Retreat.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
|
void |
Remove.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
|
Order |
OrderParser.parse(OrderFactory orderFactory,
java.lang.String text,
Power power,
TurnState turnState,
boolean locked,
boolean guess)
Parse an order to an Order object. |
abstract DefineState |
OrderFactory.createDefineState(Power power,
Location source,
Unit.Type sourceUnitType)
Creates a DefineState order |
void |
Orderable.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
Validate the order; state-independent. |
void |
Order.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
Validate the order. |
protected void |
Order.validate(ValidationOptions valOpts,
Unit unit)
Validates a dislodged or non-dislodged unit, depending upon what type of unit is specified |
protected Unit.Type |
Order.getValidatedUnitType(Province province,
Unit.Type unitType,
Unit unit)
Convenience method for matching unit types. |
protected void |
Order.checkPower(Power power,
TurnState turnState,
boolean checkIfActive)
Validates the given Power |
protected void |
Order.checkSeasonRetreat(TurnState state,
java.lang.String orderName)
Convenience method to check that we are in the Retreat phase |
protected void |
Order.checkSeasonAdjustment(TurnState state,
java.lang.String orderName)
Convenience method to check that we are in the Adjustment phase |
protected void |
Order.checkSeasonMovement(TurnState state,
java.lang.String orderName)
Convenience method to check that we are in the Movement phase |
NJudgeOrderParser.NJudgeOrder |
NJudgeOrderParser.parse(Map map,
OrderFactory orderFactory,
Phase.PhaseType phaseType,
java.lang.String line)
Parse a single line order. |
void |
Move.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
|
protected void |
Move.validateTheoreticalConvoyRoute(Position position)
Determines if this move has a theoretical explicit or implicit convoy route. |
void |
Hold.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
|
void |
Disband.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
|
void |
DefineState.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
DefineState orders will always fail validation. |
void |
Convoy.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
|
void |
Build.validate(TurnState state,
ValidationOptions valOpts,
RuleOptions ruleOpts)
Builds: Builds are valid if: supply center is owned by this power supply centers is home to this power province contains no unit can build unit of that type in said province if fleet specified, coast must be valid default to army if no type specified AND supply center is inland otherwise build fails. |
Constructors in dip.order that throw OrderException | |
DefineState(Power power,
Location src,
Unit.Type srcUnit)
|
Uses of OrderException in dip.world |
Methods in dip.world that throw OrderException | |
Location |
Location.getValidatedWithMove(Unit.Type unitType,
Location from)
This extends the simple validate method, be performing additional checking for move orders. |
Location |
Location.getValidatedAndDerived(Unit.Type unitType,
Unit existingUnit)
This extends the simple getValidated() method, by performing additional validation/checking given turnstate information. |
Location |
Location.getValidatedSetup(Unit.Type unitType)
This is mainly used for game setup (WorldFactory). |
Location |
Location.getValidated(Unit.Type unitType)
Simple Validate This is typically used for support destinations, e.g. |
static java.lang.String |
Coast.normalize(java.lang.String input)
Normalizes coasts to standard format "/xx". |
|
|||||||||||
PREV NEXT | FRAMES NO FRAMES |