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
    void addResource​(InterfacePlayerBoard playerBoard)
    Adds the resources owed to the player due to this marble
    boolean equals​(java.lang.Object obj)  

    Methods inherited from class it.polimi.ingsw.model.market.MarketMarble

    addResource, getColor

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RedMarble

      public RedMarble()
  • Method Details

    • addResource

      public void addResource​(InterfacePlayerBoard playerBoard)
      Adds the resources owed to the player due to this marble
      Specified by:
      addResource in class MarketMarble
      Parameters:
      playerBoard - the player board of the player to whom the resources belong
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object