net.sf.freecol.common.model
Interface Locatable

All Known Implementing Classes:
Goods, LostCityRumour, Resource, TileImprovement, TileItem, Unit

public interface Locatable

An object that can be put in a Location.


Method Summary
 Location getLocation()
          Gets the location of this Locatable.
 int getSpaceTaken()
          Gets the amount of space this Locatable take.
 Tile getTile()
          Returns the Tile where this Locatable is located, or null if it's location is Europe.
 void setLocation(Location newLocation)
          Sets the location for this Locatable.
 

Method Detail

setLocation

void setLocation(Location newLocation)
Sets the location for this Locatable.

Parameters:
newLocation - The new Location for the Locatable.

getLocation

Location getLocation()
Gets the location of this Locatable.

Returns:
The location of this Locatable.

getTile

Tile getTile()
Returns the Tile where this Locatable is located, or null if it's location is Europe.

Returns:
The Tile where this Unit is located. Or null if its location is Europe.

getSpaceTaken

int getSpaceTaken()
Gets the amount of space this Locatable take.

Returns:
The space it takes on a carrier.