net.sf.freecol.common.model
Interface WorkLocation

All Superinterfaces:
Location
All Known Implementing Classes:
Building, ColonyTile

public interface WorkLocation
extends Location

This interface marks the locations where a Unit can work.


Method Summary
 Colony getColony()
          Returns the Colony this WorkLocation is located in.
 int getProductionOf(GoodsType goodsType)
          Returns the production of the given type of goods.
 void newTurn()
           
 
Methods inherited from interface net.sf.freecol.common.model.Location
add, canAdd, contains, getGoodsContainer, getId, getTile, getUnitCount, getUnitIterator, getUnitList, remove
 

Method Detail

newTurn

void newTurn()

getProductionOf

int getProductionOf(GoodsType goodsType)
Returns the production of the given type of goods.

Parameters:
goodsType - The type of goods to get the production of.
Returns:
The production of the given type of goods.

getColony

Colony getColony()
Returns the Colony this WorkLocation is located in. This method always returns a colony != null (in contrast to Location.getColony(), which might return null).

Specified by:
getColony in interface Location
Returns:
The Colony this WorkLocation is located in.
See Also:
Location.getColony()