dip.gui.order
Class GUIOrderFactory

java.lang.Object
  extended bydip.order.OrderFactory
      extended bydip.gui.order.GUIOrderFactory

public class GUIOrderFactory
extends OrderFactory

Creates GUIOrders. All Orders returned will be GUI subclasses of the order objects. Additional no-argument create methods are supplied for specific GUIOrder use.


Constructor Summary
GUIOrderFactory()
          Creates a GUIOrderFactory
 
Method Summary
 Build createBuild(Power power, Location source, Unit.Type sourceUnitType)
          Creates a GUIBuild order
 Convoy createConvoy(Power power, Location src, Unit.Type srcUnitType, Location convoySrc, Power convoyPower, Unit.Type convoySrcUnitType, Location convoyDest)
          Creates a GUIConvoy order
 DefineState createDefineState(Power power, Location source, Unit.Type sourceUnitType)
          Creates a GUIDefineState order
 Disband createDisband(Power power, Location source, Unit.Type sourceUnitType)
          Creates a GUIDisband order
 GUIBuild createGUIBuild()
          Creates a GUIBuild order
 GUIConvoy createGUIConvoy()
          Creates a GUIConvoy order
 GUIDefineState createGUIDefineState()
          Creates a GUIDefineState order
 GUIDisband createGUIDisband()
          Creates a GUIDisband order
 GUIHold createGUIHold()
          Creates a GUIHold order
 GUIMove createGUIMove()
          Creates a GUIMove order
 GUIMoveExplicit createGUIMoveExplicit()
          Creates a GUIMoveExplicit order
 GUIRemove createGUIRemove()
          Creates a GUIRemove order
 GUIRetreat createGUIRetreat()
          Creates a GUIRetreat order
 GUISupport createGUISupport()
          Creates a GUISupport order
 GUIWaive createGUIWaive()
          Creates a GUIWaive order
 Hold createHold(Power power, Location source, Unit.Type sourceUnitType)
          Creates a GUIHold order
 Move createMove(Power power, Location source, Unit.Type srcUnitType, Location dest)
          Creates a GUIMove order
 Move createMove(Power power, Location source, Unit.Type srcUnitType, Location dest, boolean isConvoying)
          Creates a GUIMove order
 Move createMove(Power power, Location src, Unit.Type srcUnitType, Location dest, java.util.List routes)
          Creates a GUIMove order
 Move createMove(Power power, Location src, Unit.Type srcUnitType, Location dest, Province[] convoyRoute)
          Creates a GUIMove order
 Remove createRemove(Power power, Location source, Unit.Type sourceUnitType)
          Creates a GUIRemove order
 Retreat createRetreat(Power power, Location source, Unit.Type srcUnitType, Location dest)
          Creates a GUIRetreat order
 Support createSupport(Power power, Location src, Unit.Type srcUnitType, Location supSrc, Power supPower, Unit.Type supUnitType)
          Creates a GUISupport order, to Support a unit staying in place.
 Support createSupport(Power power, Location src, Unit.Type srcUnitType, Location supSrc, Power supPower, Unit.Type supUnitType, Location supDest)
          Creates a GUISupport order, to Support a unit moving (or staying in place, if supDest == null)
 Waive createWaive(Power power, Location source)
          Creates a GUIWaive order
 
Methods inherited from class dip.order.OrderFactory
getDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIOrderFactory

public GUIOrderFactory()
Creates a GUIOrderFactory

Method Detail

createGUIHold

public GUIHold createGUIHold()
Creates a GUIHold order


createGUIMove

public GUIMove createGUIMove()
Creates a GUIMove order


createGUIMoveExplicit

public GUIMoveExplicit createGUIMoveExplicit()
Creates a GUIMoveExplicit order


createGUISupport

public GUISupport createGUISupport()
Creates a GUISupport order


createGUIConvoy

public GUIConvoy createGUIConvoy()
Creates a GUIConvoy order


createGUIRetreat

public GUIRetreat createGUIRetreat()
Creates a GUIRetreat order


createGUIDisband

public GUIDisband createGUIDisband()
Creates a GUIDisband order


createGUIBuild

public GUIBuild createGUIBuild()
Creates a GUIBuild order


createGUIRemove

public GUIRemove createGUIRemove()
Creates a GUIRemove order


createGUIWaive

public GUIWaive createGUIWaive()
Creates a GUIWaive order


createGUIDefineState

public GUIDefineState createGUIDefineState()
Creates a GUIDefineState order


createHold

public Hold createHold(Power power,
                       Location source,
                       Unit.Type sourceUnitType)
Creates a GUIHold order

Specified by:
createHold in class OrderFactory

createMove

public Move createMove(Power power,
                       Location source,
                       Unit.Type srcUnitType,
                       Location dest)
Creates a GUIMove order

Specified by:
createMove in class OrderFactory

createMove

public Move createMove(Power power,
                       Location source,
                       Unit.Type srcUnitType,
                       Location dest,
                       boolean isConvoying)
Creates a GUIMove order

Specified by:
createMove in class OrderFactory

createMove

public Move createMove(Power power,
                       Location src,
                       Unit.Type srcUnitType,
                       Location dest,
                       Province[] convoyRoute)
Creates a GUIMove order

Specified by:
createMove in class OrderFactory

createMove

public Move createMove(Power power,
                       Location src,
                       Unit.Type srcUnitType,
                       Location dest,
                       java.util.List routes)
Creates a GUIMove order

Specified by:
createMove in class OrderFactory

createSupport

public Support createSupport(Power power,
                             Location src,
                             Unit.Type srcUnitType,
                             Location supSrc,
                             Power supPower,
                             Unit.Type supUnitType)
Creates a GUISupport order, to Support a unit staying in place.

Specified by:
createSupport in class OrderFactory

createSupport

public Support createSupport(Power power,
                             Location src,
                             Unit.Type srcUnitType,
                             Location supSrc,
                             Power supPower,
                             Unit.Type supUnitType,
                             Location supDest)
Creates a GUISupport order, to Support a unit moving (or staying in place, if supDest == null)

Specified by:
createSupport in class OrderFactory

createConvoy

public Convoy createConvoy(Power power,
                           Location src,
                           Unit.Type srcUnitType,
                           Location convoySrc,
                           Power convoyPower,
                           Unit.Type convoySrcUnitType,
                           Location convoyDest)
Creates a GUIConvoy order

Specified by:
createConvoy in class OrderFactory

createRetreat

public Retreat createRetreat(Power power,
                             Location source,
                             Unit.Type srcUnitType,
                             Location dest)
Creates a GUIRetreat order

Specified by:
createRetreat in class OrderFactory

createDisband

public Disband createDisband(Power power,
                             Location source,
                             Unit.Type sourceUnitType)
Creates a GUIDisband order

Specified by:
createDisband in class OrderFactory

createBuild

public Build createBuild(Power power,
                         Location source,
                         Unit.Type sourceUnitType)
Creates a GUIBuild order

Specified by:
createBuild in class OrderFactory

createRemove

public Remove createRemove(Power power,
                           Location source,
                           Unit.Type sourceUnitType)
Creates a GUIRemove order

Specified by:
createRemove in class OrderFactory

createWaive

public Waive createWaive(Power power,
                         Location source)
Creates a GUIWaive order

Specified by:
createWaive in class OrderFactory

createDefineState

public DefineState createDefineState(Power power,
                                     Location source,
                                     Unit.Type sourceUnitType)
                              throws OrderException
Creates a GUIDefineState order

Specified by:
createDefineState in class OrderFactory
Throws:
OrderException


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.