Class MarketUpdate

java.lang.Object
it.polimi.ingsw.model.updatecontainers.MarketUpdate
All Implemented Interfaces:
ModelUpdate

public class MarketUpdate
extends java.lang.Object
implements ModelUpdate
A model update represents an update happened in a market. Model updates contain information to notify clients or views of an update happened on the model
  • Constructor Summary

    Constructors
    Constructor Description
    MarketUpdate​(boolean isRow, int index)  
  • Method Summary

    Modifier and Type Method Description
    int getIndex()
    return index of the pushed row/column
    boolean getIsRow()
    returns true if a row has been bushed, false otherwise

    Methods inherited from class java.lang.Object

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

    • MarketUpdate

      public MarketUpdate​(boolean isRow, int index)
  • Method Details

    • getIsRow

      public boolean getIsRow()
      returns true if a row has been bushed, false otherwise
      Returns:
      true if a row has been bushed, false otherwise
    • getIndex

      public int getIndex()
      return index of the pushed row/column
      Returns:
      index of the pushed row/column