Uses of Class
dip.world.Province

Packages that use Province
dip.gui.map   
dip.gui.order   
dip.gui.undo   
dip.order   
dip.order.result   
dip.process   
dip.world   
 

Uses of Province in dip.gui.map
 

Fields in dip.gui.map declared as Province
protected  Province RenderCommandFactory.RCRenderProvince.province
           
 

Methods in dip.gui.map with parameters of type Province
abstract  RenderCommandFactory.RCRenderProvince RenderCommandFactory.createRCRenderProvince(MapRenderer2 mr, Province province)
           
 void MapPanel.updateProvince(Province province)
          Convenience method: updates the rendering of a province.
 MapMetadata.InfoEntry MapMetadata.getInfoEntry(Province key)
          Get an InfoEntry
 void MapMetadata.setInfoEntry(Province key, MapMetadata.InfoEntry value)
          Set an InfoEntry This generally should NOT be used.
 java.awt.geom.Point2D.Float MapMetadata.getUnitPt(Province key, Coast coast)
          Convenience method: get Unit placement point for this Province
 java.awt.geom.Point2D.Float MapMetadata.getDislodgedUnitPt(Province key, Coast coast)
          Convenience method: get Dislodged Unit placement point for this Province
 java.awt.geom.Point2D.Float MapMetadata.getSCPt(Province key)
          Convenience method: get Supply Center placement point for this Province
 void EditControlBar.addUnit(Province province, Unit unit, boolean isDislodged)
          Add a unit to a province; does not generate an undo/redo event.
 void EditControlBar.removeUnit(Province province, boolean isDislodged)
          Remove a unit from a province; does not generate an undo/redo event.
 void EditControlBar.changeSCOwner(Province province, Power newPower)
          Change the supply center owner of a province; does not generate an undo/redo event.
 RenderCommandFactory.RCRenderProvince DMR2RenderCommandFactory.createRCRenderProvince(MapRenderer2 mr, Province province)
          Updates the province, based on the current Position object This typically will change units, dislodged units, and supply center information for the given Province.
 RenderCommandFactory.RenderCommand DMR2RenderCommandFactory.createRCRenderProvinceForced(MapRenderer2 mr, Province province)
          Force-update the unit or dislodged unit information
 RenderCommandFactory.RenderCommand DMR2RenderCommandFactory.createRCUpdateSC(MapRenderer2 mr, Province province)
          Update a Supply Center (position)
protected  void DefaultMapRenderer2.unsyncUpdateProvince(Province province, boolean forceUpdate)
          Unsynchronized province updater, used in both update methods.
protected  void DefaultMapRenderer2.unsyncUpdateProvince(Province province)
          Convenience method: non-forced.
protected  void DefaultMapRenderer2.unsyncUpdateProvince(DefaultMapRenderer2.Tracker tracker, Province province, boolean force)
          Unsynchronized province updater, used in both update methods.
protected  void DefaultMapRenderer2.unsyncUpdateSC(Province province)
          Updates an SC element with new position information.
 

Constructors in dip.gui.map with parameters of type Province
RenderCommandFactory.RCRenderProvince(MapRenderer2 mr, Province province)
          Constructor
DMR2RenderCommandFactory.RCRenderProvince(MapRenderer2 dmr2, Province province)
           
 

Uses of Province in dip.gui.order
 

Methods in dip.gui.order with parameters of type Province
 Move GUIOrderFactory.createMove(Power power, Location src, Unit.Type srcUnitType, Location dest, Province[] convoyRoute)
          Creates a GUIMove order
 

Constructors in dip.gui.order with parameters of type Province
GUIMoveExplicit(Power power, Location src, Unit.Type srcUnitType, Location dest, Province[] convoyRoute)
          Creates a GUIMoveExplicit
GUIMove(Power power, Location src, Unit.Type srcUnitType, Location dest, Province[] convoyRoute)
          Creates a GUIMove
 

Uses of Province in dip.gui.undo
 

Constructors in dip.gui.undo with parameters of type Province
UndoEditSCOwner(UndoRedoManager urm, Position position, Province province, Power oldPower, Power newPower)
           
UndoEditRemoveUnit(UndoRedoManager urm, Position position, Province province, Unit unit, boolean isDislodged)
           
UndoEditAddUnit(UndoRedoManager urm, Position position, Province province, Unit unit, boolean isDislodged)
           
 

Uses of Province in dip.order
 

Methods in dip.order that return Province
 Province[] Move.getConvoyRoute()
          Returns, if set, an explicit convoy route (or the first explicit route if there are multiple routes).
 

Methods in dip.order with parameters of type Province
static java.lang.String OrderFormat.format(OrderFormatOptions ofo, Province province)
          Format a Province given the order formatting parameters.
abstract  Move OrderFactory.createMove(Power power, Location src, Unit.Type srcUnitType, Location dest, Province[] convoyRoute)
          Creates a Move order
protected  Unit.Type Order.getValidatedUnitType(Province province, Unit.Type unitType, Unit unit)
          Convenience method for matching unit types.
protected  java.lang.String Move.formatConvoyRoute(Province[] route, boolean isBrief, boolean useHyphen)
          Format a convoy route into a String
protected  void Move.formatConvoyRoute(java.lang.StringBuffer sb, Province[] route, boolean isBrief, boolean useHyphen)
          Format a convoy route into a StringBuffer
 

Constructors in dip.order with parameters of type Province
Move(Power power, Location src, Unit.Type srcUnitType, Location dest, Province[] convoyRoute)
          Creates a Move order with an explicit convoy route.
 

Uses of Province in dip.order.result
 

Methods in dip.order.result that return Province
 Province DislodgedResult.getDislodger()
          Returns the dislodging units location, or null if it has not been set.
 Province[] ConvoyPathResult.getConvoyPath()
          Gets the Convoy Path; path includes source and destination provinces.
 Province BouncedResult.getBouncer()
          Returns the location of the unit with whom we bounced, or null if it has not been set.
 

Methods in dip.order.result with parameters of type Province
 void DislodgedResult.setDislodger(Province value)
          Set the dislodger.
 void BouncedResult.setBouncer(Province value)
          Set the unit which which we had bounced.
 

Constructors in dip.order.result with parameters of type Province
ConvoyPathResult(Orderable order, Province[] convoyPath)
          Create a ConvoyPathResult
 

Uses of Province in dip.process
 

Methods in dip.process that return Province
 Province OrderState.getSourceProvince()
          Convenicent method: get the order source Province
 

Methods in dip.process with parameters of type Province
 OrderState StdAdjudicator.findOrderStateBySrc(Province src)
          Find the OrderState with the given source Province.
 OrderState Adjudicator.findOrderStateBySrc(Province src)
          Find the OrderState with the given source Province.
 

Uses of Province in dip.world
 

Methods in dip.world that return Province
 Province[] Position.getProvinces()
          Convenience method: Returns an array of Provinces
 Province[] Position.getUnitProvinces()
          Returns an array of provinces with non-dislodged units
 Province[] Position.getDislodgedUnitProvinces()
          Returns an array of provinces with dislodged units
 Province[] Position.getHomeSupplyCenters()
          Returns an array of provinces with home supply centers
 Province[] Position.getHomeSupplyCenters(Power power)
          Returns an Array of the Home Supply Centers for a given power (whether or not they are owned by that power)
 Province[] Position.getOwnedSupplyCenters(Power power)
          Returns an Array of the owned Supply Centers for a given Power (whether or not they are home supply centers)
 Province[] Position.getOwnedSupplyCenters()
          Returns an array of provinces with owned supply centers
 Province[] Position.getUnitProvinces(Power power)
          Gets all the Provinces with non-dislodged Units for a particular power.
 Province[] Position.getDislodgedUnitProvinces(Power power)
          Gets all the Provinces with dislodged Units for a particular power.
static Province[][] Path.findAllSeaPaths(Path.FAPEvaluator evaluator, Province src, Province dest)
          Finds all sea paths from src to dest..
 Province[] Map.getProvinces()
          Returns an Array of all Provinces.
 Province Map.getProvince(java.lang.String name)
          Returns the Province that matches name.
 Province Map.getProvinceMatching(java.lang.String input)
          Returns the Province that matches the input name.
 Province Map.reverseIndex(int i)
          Given an index, returns the Province to which that index corresponds.
 Province Location.getProvince()
          Get the Province for this Location
 

Methods in dip.world with parameters of type Province
 boolean Province.isTouching(Province province)
          Determines if two provinces are in any way adjacent (connected).
 boolean Province.isAdjacent(Coast sourceCoast, Province dest)
          Checks connectivity between this and another province This method only determines if the current Province with the specified coast is connected to the destination Province.
protected  boolean Province.Adjacency.validate(Province p)
          Ensure that adjacency data is consistent, and that there are no illegal coast combinations.
 void Position.setSupplyCenterOwner(Province province, Power power)
          Set the owner of the supply center.
 void Position.setSupplyCenterHomePower(Province province, Power power)
          Set the owner of a home supply center.
 boolean Position.hasSupplyCenterOwner(Province province)
          Determine if this Province contains a supply center
 boolean Position.isSupplyCenterAHome(Province province)
          Determine if this Province contains a Home supply center
 Power Position.getSupplyCenterHomePower(Province province)
          Get the home power of the supply center; null if no supply center or home power
 Power Position.getSupplyCenterOwner(Province province)
          Get the owner of the supply center; null if no owner or no supply center.
 void Position.setUnit(Province province, Unit unit)
          Set the unit contained in this province; null to eliminate an existing unit.
 boolean Position.hasUnit(Province province)
          Determines if there is a unit present in this province.
 Unit Position.getUnit(Province province)
          Get the unit contained in this Province.
 boolean Position.hasUnit(Province province, Unit.Type unitType)
          Test if the given type of unit is contained in this Province.
 boolean Position.hasDislodgedUnit(Province province, Unit.Type unitType)
          Test if the given type of unit is contained in this Province.
 void Position.setDislodgedUnit(Province province, Unit unit)
          Set the dislodged unit contained in this province; null to eliminate an existing unit.
 Unit Position.getDislodgedUnit(Province province)
          Get the dislodged unit in this Province.
 void Position.setLastOccupier(Province province, Power power)
          Sets the Power that last occupied a given space.
 Power Position.getLastOccupier(Province province)
          Returns the Power that last occupied a given space.
 boolean Position.hasDislodgedUnit(Province province)
          Determines if there is a dislodged unit present in this province.
static boolean Path.isRouteValid(Position pos, Location src, Location dest, Province[] route)
          Checks a convoy route to see if it is 'theoretically' valid; this is true iff: route is non-null and length of 3 or more first and last route provinces match src and dest Location provinces first and last provinces are land all other provinces are convoyable (sea or convoyable coast) all convoyable locations have a fleet present route is composed of adjacent spaces
static boolean Path.isRouteLegal(Adjudicator adj, Province[] route)
          Verifies a route during adjudication stage; Given a valid route, all fleets must have: a Convoy order, with convoy src/dest matching the src/dest given the evaluation state of the Convoy order must not be Tristate.FAILURE
 int Path.getMinDistance(Province src, Province dest)
          Find shortest distance between src & dest.
static Province[][] Path.findAllSeaPaths(Path.FAPEvaluator evaluator, Province src, Province dest)
          Finds all sea paths from src to dest..
protected  boolean Path.AnyConvoyPathEvaluator.evalFleet(Province province, Unit unit)
           
 boolean Path.FAPEvaluator.evaluate(Province province)
          Evaluate if a Province should be added.
 boolean Path.FleetFAPEvaluator.evaluate(Province province)
          Evaluate if a Province should be added.
 boolean Path.ConvoyFAPEvaluator.evaluate(Province province)
          Evaluate if a Province should be added.
 boolean Location.isTouching(Province destProvince)
          Returns true if this location is touching the given province.
 boolean Location.isAdjacent(Province destProvince)
          Determines if the two locations are adjacent (connected).
 boolean Location.isProvinceEqual(Province province)
          Returns true if the Province in this location is equal to the province argument; coasts are ignored.
 

Constructors in dip.world with parameters of type Province
Path.ConvoyFAPEvaluator(Adjudicator adj, Province src, Province dest)
          Create a ConvoyFAPEvaluator
Map(Power[] powerArray, Province[] provinceArray)
          Constructs a Map object.
Location(Province province, Coast coast)
          Create a Location object
 



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