|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.order.Order
dip.order.Move
dip.gui.order.GUIMoveExplicit
GUIOrder subclass of Move order.
This differs from GUIMove in that Explicit convoy routes are always created. Implicit convoy routes cannot be created via GUI entry.
This should be used instead of GUIMove for games with RuleOptions that enforce explicit convoy routes (such as Judge-based games).
Nested Class Summary | |
protected static class |
GUIMoveExplicit.MoveParameter
Typesafe Enumerated Parameter class for setting optional Move parameters. |
Nested classes inherited from class dip.gui.order.GUIOrder |
GUIOrder.MapInfo, GUIOrder.Parameter, GUIOrder.StateInfo |
Field Summary |
Fields inherited from class dip.order.Move |
_fmtIsAdjWithConvoy, _hasLandRoute, _isAdjWithPossibleConvoy, _isConvoyIntent, _isViaConvoy, convoyRoutes, dest |
Fields inherited from class dip.order.Order |
ORD_VAL_BORDER, power, src, srcUnitType |
Fields inherited from interface dip.gui.order.GUIOrder |
BORDER_INVALID, CANCELED, CLICK_TO_CANCEL, CLICK_TO_ISSUE, COMPLETE, LAYER_HIGHEST, LAYER_LOWEST, LAYER_TYPICAL, NO_DISLODGED_UNIT, NO_UNIT, NOT_IN_PROVINCE, NOT_OWNER |
Constructor Summary | |
protected |
GUIMoveExplicit()
Creates a GUIMoveExplicit |
protected |
GUIMoveExplicit(Power power,
Location source,
Unit.Type srcUnitType,
Location dest,
boolean isConvoying)
Creates a GUIMoveExplicit |
protected |
GUIMoveExplicit(Power power,
Location src,
Unit.Type srcUnitType,
Location dest,
java.util.List routes)
Creates a GUIMoveExplicit |
protected |
GUIMoveExplicit(Power power,
Location src,
Unit.Type srcUnitType,
Location dest,
Province[] convoyRoute)
Creates a GUIMoveExplicit |
Method Summary | |
boolean |
clearLocations()
Clear all set locations. |
void |
deriveFrom(Orderable order)
This only accepts Move orders. |
int |
getCurrentLocationNum()
Returns the current Location set point, or 0 if no Locations have been set. |
int |
getNumRequiredLocations()
Returns the number of required Location set points. |
java.lang.Object |
getParam(GUIOrder.Parameter param)
Always throws an IllegalArgumentException |
boolean |
isComplete()
Returns if all Locations have been set and the order is complete. |
boolean |
isDependent()
We are dependent on the presence of Support orders for certain drawing parameters. |
void |
removeFromDOM(GUIOrder.MapInfo mapInfo)
Removes order from the DOM |
boolean |
setLocation(GUIOrder.StateInfo stateInfo,
Location location,
java.lang.StringBuffer sb)
Sets the current location. |
void |
setParam(GUIOrder.Parameter param,
java.lang.Object value)
Always throws an IllegalArgumentException |
boolean |
testLocation(GUIOrder.StateInfo stateInfo,
Location location,
java.lang.StringBuffer sb)
Tests if a given location is valid. |
void |
updateDOM(GUIOrder.MapInfo mapInfo)
Draws a line with an arrow. |
Methods inherited from class dip.order.Move |
determineDependencies, equals, evaluate, formatConvoyRoute, formatConvoyRoute, getBriefName, getConvoyRoute, getConvoyRoutes, getDefaultFormat, getDest, getFullName, isAdjWithPossibleConvoy, isConvoying, isConvoyIntent, isViaConvoy, toBriefString, toFullString, validate, validateTheoreticalConvoyRoute, verify |
Methods inherited from class dip.order.Order |
addSupportsOfAndMovesToSource, appendBrief, appendFull, checkPower, checkSeasonAdjustment, checkSeasonMovement, checkSeasonRetreat, getPower, getSource, getSourceUnitType, getValidatedUnitType, toFormattedString, toString, validate |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface dip.order.Orderable |
determineDependencies, evaluate, getBriefName, getDefaultFormat, getFullName, getPower, getSource, getSourceUnitType, toBriefString, toFormattedString, toFullString, validate, verify |
Constructor Detail |
protected GUIMoveExplicit()
protected GUIMoveExplicit(Power power, Location source, Unit.Type srcUnitType, Location dest, boolean isConvoying)
protected GUIMoveExplicit(Power power, Location src, Unit.Type srcUnitType, Location dest, Province[] convoyRoute)
protected GUIMoveExplicit(Power power, Location src, Unit.Type srcUnitType, Location dest, java.util.List routes)
Method Detail |
public void deriveFrom(Orderable order)
deriveFrom
in interface GUIOrder
public boolean testLocation(GUIOrder.StateInfo stateInfo, Location location, java.lang.StringBuffer sb)
GUIOrder
testLocation
in interface GUIOrder
public boolean clearLocations()
GUIOrder
clearLocations
in interface GUIOrder
public boolean setLocation(GUIOrder.StateInfo stateInfo, Location location, java.lang.StringBuffer sb)
GUIOrder
setLocation
in interface GUIOrder
public boolean isComplete()
GUIOrder
isComplete
in interface GUIOrder
public int getNumRequiredLocations()
GUIOrder
getNumRequiredLocations
in interface GUIOrder
public int getCurrentLocationNum()
GUIOrder
getCurrentLocationNum
in interface GUIOrder
public void setParam(GUIOrder.Parameter param, java.lang.Object value)
setParam
in interface GUIOrder
public java.lang.Object getParam(GUIOrder.Parameter param)
getParam
in interface GUIOrder
public void removeFromDOM(GUIOrder.MapInfo mapInfo)
GUIOrder
removeFromDOM
in interface GUIOrder
public void updateDOM(GUIOrder.MapInfo mapInfo)
updateDOM
in interface GUIOrder
public boolean isDependent()
isDependent
in interface GUIOrder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |