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 OwnableInterface for objects which can be owned by aPlayer.- See Also:
Player
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlayergetOwner()Gets the owner of thisOwnable.voidsetOwner(Player p)Sets the owner of thisOwnable.
-
-
-
Method Detail
-
getOwner
Player getOwner()
Gets the owner of thisOwnable.- Returns:
- The
Playercontrolling thisOwnable.
-
setOwner
void setOwner(Player p)
Sets the owner of thisOwnable.- Parameters:
p- ThePlayerthat should take ownership of thisOwnable.- Throws:
java.lang.UnsupportedOperationException- if not implemented.
-
-