|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.order.OrderFactory
Creates Orders..
Constructor Summary | |
protected |
OrderFactory()
Creates an OrderFactory |
Method Summary | |
abstract Build |
createBuild(Power power,
Location source,
Unit.Type sourceUnitType)
Creates a Build order |
abstract Convoy |
createConvoy(Power power,
Location src,
Unit.Type srcUnitType,
Location convoySrc,
Power convoyPower,
Unit.Type convoySrcUnitType,
Location convoyDest)
Creates a Convoy order |
abstract DefineState |
createDefineState(Power power,
Location source,
Unit.Type sourceUnitType)
Creates a DefineState order |
abstract Disband |
createDisband(Power power,
Location source,
Unit.Type sourceUnitType)
Creates a Disband order |
abstract Hold |
createHold(Power power,
Location source,
Unit.Type sourceUnitType)
Creates a Hold order |
abstract Move |
createMove(Power power,
Location source,
Unit.Type srcUnitType,
Location dest)
Creates a Move order |
abstract Move |
createMove(Power power,
Location source,
Unit.Type srcUnitType,
Location dest,
boolean isConvoying)
Creates a Move order |
abstract Move |
createMove(Power power,
Location src,
Unit.Type srcUnitType,
Location dest,
java.util.List routes)
Creates a Move order |
abstract Move |
createMove(Power power,
Location src,
Unit.Type srcUnitType,
Location dest,
Province[] convoyRoute)
Creates a Move order |
abstract Remove |
createRemove(Power power,
Location source,
Unit.Type sourceUnitType)
Creates a Remove order |
abstract Retreat |
createRetreat(Power power,
Location source,
Unit.Type srcUnitType,
Location dest)
Creates a Retreat order |
abstract Support |
createSupport(Power power,
Location src,
Unit.Type srcUnitType,
Location supSrc,
Power supPower,
Unit.Type supUnitType)
Creates a Support order, to Support a unit staying in place. |
abstract Support |
createSupport(Power power,
Location src,
Unit.Type srcUnitType,
Location supSrc,
Power supPower,
Unit.Type supUnitType,
Location supDest)
Creates a Support order, to Support a unit moving (or staying in place, if supDest == null) |
abstract Waive |
createWaive(Power power,
Location source)
Creates a Waive order |
static OrderFactory |
getDefault()
Get the default OrderFactory, which is dip.order.OrderFactory.DefaultOrderFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected OrderFactory()
Method Detail |
public static OrderFactory getDefault()
WARNING: this should NOT be used if there is any likelyhood of every wanting to use GUI orders (e.g., via GUIOrderFactory). GUI orders are completely compatible with regular orders, via the Orderable interface.
This method is mainly provided for convenience (e.g., command-line utilities).
public abstract Hold createHold(Power power, Location source, Unit.Type sourceUnitType)
public abstract Move createMove(Power power, Location source, Unit.Type srcUnitType, Location dest)
public abstract Move createMove(Power power, Location source, Unit.Type srcUnitType, Location dest, boolean isConvoying)
public abstract Move createMove(Power power, Location src, Unit.Type srcUnitType, Location dest, Province[] convoyRoute)
public abstract Move createMove(Power power, Location src, Unit.Type srcUnitType, Location dest, java.util.List routes)
public abstract Support createSupport(Power power, Location src, Unit.Type srcUnitType, Location supSrc, Power supPower, Unit.Type supUnitType)
public abstract Support createSupport(Power power, Location src, Unit.Type srcUnitType, Location supSrc, Power supPower, Unit.Type supUnitType, Location supDest)
public abstract Convoy createConvoy(Power power, Location src, Unit.Type srcUnitType, Location convoySrc, Power convoyPower, Unit.Type convoySrcUnitType, Location convoyDest)
public abstract Retreat createRetreat(Power power, Location source, Unit.Type srcUnitType, Location dest)
public abstract Disband createDisband(Power power, Location source, Unit.Type sourceUnitType)
public abstract Build createBuild(Power power, Location source, Unit.Type sourceUnitType)
public abstract Remove createRemove(Power power, Location source, Unit.Type sourceUnitType)
public abstract Waive createWaive(Power power, Location source)
public abstract DefineState createDefineState(Power power, Location source, Unit.Type sourceUnitType) throws OrderException
OrderException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |