games.strategy.triplea.delegate.remote
Interface IAbstractPlaceDelegate

All Superinterfaces:
IRemote
All Known Implementing Classes:
AbstractPlaceDelegate, BidPlaceDelegate, PlaceDelegate, PlaceDelegate

public interface IAbstractPlaceDelegate
extends IRemote

Author:
Sean Bridges

Method Summary
 PlaceableUnits getPlaceableUnits(java.util.Collection<Unit> units, Territory at)
          Query what units can be produced in a given territory.
 int getPlacementsMade()
           
 java.util.Collection<Territory> getTerritoriesWhereAirCantLand()
          Get what air units must move before the end of the players turn
 java.lang.String placeUnits(java.util.Collection<Unit> units, Territory at)
          Place units.
 void undoLastPlacement()
          Undoes the last placement.
 

Method Detail

undoLastPlacement

void undoLastPlacement()
Undoes the last placement.


placeUnits

java.lang.String placeUnits(java.util.Collection<Unit> units,
                            Territory at)
Place units. The return value is used to return an error code if the placement was not successful


getPlaceableUnits

PlaceableUnits getPlaceableUnits(java.util.Collection<Unit> units,
                                 Territory at)
Query what units can be produced in a given territory. ProductionResponse may indicate an error string that there can be no units placed in a given territory

Returns:

getPlacementsMade

int getPlacementsMade()
Returns:
the number of placements made so far. this is not the number of units placed, but the number of times we have made succesful placements

getTerritoriesWhereAirCantLand

java.util.Collection<Territory> getTerritoriesWhereAirCantLand()
Get what air units must move before the end of the players turn

Returns:
a list of Territories with air units that must move