games.strategy.triplea.delegate
Class BidPlaceDelegate

java.lang.Object
  extended by games.strategy.triplea.delegate.AbstractPlaceDelegate
      extended by games.strategy.triplea.delegate.BidPlaceDelegate
All Implemented Interfaces:
IDelegate, IRemote, IAbstractPlaceDelegate

public class BidPlaceDelegate
extends AbstractPlaceDelegate


Field Summary
 
Fields inherited from class games.strategy.triplea.delegate.AbstractPlaceDelegate
m_data, m_produced
 
Constructor Summary
BidPlaceDelegate()
           
 
Method Summary
protected  java.lang.String canProduce(Territory to, java.util.Collection<Unit> units, PlayerID player)
          Test whether or not the territory has the factory resources to support the placement.
protected  java.lang.String checkProduction(Territory to, java.util.Collection<Unit> units, PlayerID player)
          Test whether or not the territory has the factory resources to support the placement.
protected  int getMaxUnitsToBePlaced(java.util.Collection<Unit> units, Territory to, PlayerID player)
           
protected  int getMaxUnitsToBePlaced(Territory to, PlayerID player)
           
protected  java.util.Collection<Unit> getUnitsToBePlacedLand(Territory to, java.util.Collection<Unit> units, PlayerID player)
           
 
Methods inherited from class games.strategy.triplea.delegate.AbstractPlaceDelegate
canUnitsBePlaced, end, getData, getDisplayName, getName, getPlaceableUnits, getPlacementsMade, getProduction, getRemoteType, getTerritoriesWhereAirCantLand, getUnitsToBePlacedSea, initialize, initialize, isUnitPlacementInEnemySeas, isValidPlacement, isWW2V2, loadState, placeUnits, saveState, start, undoLastPlacement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BidPlaceDelegate

public BidPlaceDelegate()
Method Detail

getMaxUnitsToBePlaced

protected int getMaxUnitsToBePlaced(Territory to,
                                    PlayerID player)

checkProduction

protected java.lang.String checkProduction(Territory to,
                                           java.util.Collection<Unit> units,
                                           PlayerID player)
Description copied from class: AbstractPlaceDelegate
Test whether or not the territory has the factory resources to support the placement. AlreadyProduced maps territory->units already produced this turn by that territory.

Overrides:
checkProduction in class AbstractPlaceDelegate

canProduce

protected java.lang.String canProduce(Territory to,
                                      java.util.Collection<Unit> units,
                                      PlayerID player)
Description copied from class: AbstractPlaceDelegate
Test whether or not the territory has the factory resources to support the placement. AlreadyProduced maps territory->units already produced this turn by that territory.

Overrides:
canProduce in class AbstractPlaceDelegate

getMaxUnitsToBePlaced

protected int getMaxUnitsToBePlaced(java.util.Collection<Unit> units,
                                    Territory to,
                                    PlayerID player)
Overrides:
getMaxUnitsToBePlaced in class AbstractPlaceDelegate

getUnitsToBePlacedLand

protected java.util.Collection<Unit> getUnitsToBePlacedLand(Territory to,
                                                            java.util.Collection<Unit> units,
                                                            PlayerID player)
Overrides:
getUnitsToBePlacedLand in class AbstractPlaceDelegate