|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkLocation
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 |
---|
void newTurn()
int getProductionOf(GoodsType goodsType)
goodsType
- The type of goods to get the production of.
Colony getColony()
Colony
this WorkLocation
is
located in.
This method always returns a colony != null (in contrast to
Location.getColony(), which might return null).
getColony
in interface Location
Colony
this WorkLocation
is
located in.Location.getColony()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |