net.sf.freecol.common.model
Interface Ownable

All Known Implementing Classes:
Building, Colony, ColonyTile, Europe, Goods, IndianSettlement, Market, Settlement, Tile, TradeRoute, Unit

public interface Ownable

Interface for objects which can be owned by a Player.

See Also:
Player

Method Summary
 Player getOwner()
          Gets the owner of this Ownable.
 void setOwner(Player p)
          Sets the owner of this Ownable.
 

Method Detail

getOwner

Player getOwner()
Gets the owner of this Ownable.

Returns:
The Player controlling this Ownable.

setOwner

void setOwner(Player p)
Sets the owner of this Ownable.

Parameters:
p - The Player that should take ownership of this Ownable.
Throws:
java.lang.UnsupportedOperationException - if not implemented.