Package it.polimi.ingsw.model.market
Class RedMarble
java.lang.Object
it.polimi.ingsw.model.market.MarketMarble
it.polimi.ingsw.model.market.RedMarble
public class RedMarble extends MarketMarble
Represents a red market marble that will be converted in a faith resulting in a step forward on track
-
Constructor Summary
Constructors Constructor Description RedMarble() -
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
-
RedMarble
public RedMarble()
-
-
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
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-