Monopoly
Interface Collectable

All Known Implementing Classes:
Company, GetOutOfJailCard, Property, Street, TrainStation

public interface Collectable

This is the interface of all the instances that can be collected.

See Also:
Property, GetOutOfJailCard

Method Summary
 Player getOwner()
          Returns the player who is owner of the Property or GetOutOfJailCard.
 void setOwner(Player owner)
          Sets the owner of the Property or GetOutOfJailCard.
 

Method Detail

setOwner

void setOwner(Player owner)
Sets the owner of the Property or GetOutOfJailCard.

Pre: the parameter owner must be a valid instance of class Player (who is not in jail or bankrupt).
Post: Sets the parameter owner as the owner of the .

Parameters:
owner - The player who will be the owner

getOwner

Player getOwner()
Returns the player who is owner of the Property or GetOutOfJailCard.

Pre: the owner must be a valid instance of class Player.
Post: returns the player who is the owner of the .

Returns:
Player object - the player who is owner of the .