Package it.polimi.ingsw.model.market
Class NormalMarble
java.lang.Object
it.polimi.ingsw.model.market.MarketMarble
it.polimi.ingsw.model.market.NormalMarble
public class NormalMarble extends MarketMarble
Represents a market marble that will be converted in a resource that can be added into warehouse
-
Constructor Summary
Constructors Constructor Description NormalMarble(ResourceType resource) -
Method Summary
Modifier and Type Method Description voidaddResource(InterfacePlayerBoard playerBoard)Adds the resources owed to the player due to this marblebooleanequals(java.lang.Object obj)Methods inherited from class it.polimi.ingsw.model.market.MarketMarble
addResource, getColorMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NormalMarble
- Throws:
AbuseOfFaithException
-
-
Method Details
-
addResource
Adds the resources owed to the player due to this marble- Specified by:
addResourcein classMarketMarble- Parameters:
playerBoard- the player board of the player to whom the resources belong- Throws:
NotEnoughSpaceException- there isn't enough space in the warehouse to add this resource
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-