Package net.sf.freecol.common.model
Interface Ownable
-
- All Known Implementing Classes:
Building
,Colony
,ColonyTile
,Europe
,Goods
,GoodsContainer
,IndianSettlement
,Market
,ServerBuilding
,ServerColony
,ServerColonyTile
,ServerEurope
,ServerIndianSettlement
,ServerUnit
,Settlement
,Tile
,TradeRoute
,Unit
,WorkLocation
public interface Ownable
Interface for objects which can be owned by aPlayer
.- See Also:
Player
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Player
getOwner()
Gets the owner of thisOwnable
.void
setOwner(Player p)
Sets the owner of thisOwnable
.
-
-
-
Method Detail
-
getOwner
Player getOwner()
Gets the owner of thisOwnable
.- Returns:
- The
Player
controlling thisOwnable
.
-
setOwner
void setOwner(Player p)
Sets the owner of thisOwnable
.- Parameters:
p
- ThePlayer
that should take ownership of thisOwnable
.- Throws:
java.lang.UnsupportedOperationException
- if not implemented.
-
-