Class CellDataModel

java.lang.Object
it.polimi.ingsw.Client.CellDataModel

public class CellDataModel extends Object
This class defines board cells data model
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private javafx.scene.image.ImageView
    Cell's ImageView
    private int
    Cell's x coordinate
    private int
    Cell's y coordinate
  • Constructor Summary

    Constructors
    Constructor
    Description
    CellDataModel(int x, int y, javafx.scene.image.ImageView cell)
    Constructor for CellDataModel class
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.scene.image.ImageView
    Getter method for cell's ImageView
    int
    Getter method for x coordinate
    int
    Getter method for y coordinate
    void
    setCell(javafx.scene.image.ImageView cell)
    Setter method for cell's ImageView
    void
    setX(int x)
    Setter method for x coordinate
    void
    setY(int y)
    Setter method for y coordinate

    Methods inherited from class java.lang.Object

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

    • x

      private int x
      Cell's x coordinate
    • y

      private int y
      Cell's y coordinate
    • cell

      private javafx.scene.image.ImageView cell
      Cell's ImageView
  • Constructor Details

    • CellDataModel

      public CellDataModel(int x, int y, javafx.scene.image.ImageView cell)
      Constructor for CellDataModel class
      Parameters:
      x - coordinate
      y - coordinate
      cell - ImageView
  • Method Details

    • getX

      public int getX()
      Getter method for x coordinate
      Returns:
      x coordinate
    • setX

      public void setX(int x)
      Setter method for x coordinate
      Parameters:
      x - coordinate to set
    • getY

      public int getY()
      Getter method for y coordinate
      Returns:
      y coordinate
    • setY

      public void setY(int y)
      Setter method for y coordinate
      Parameters:
      y - coordinate to set
    • getCell

      public javafx.scene.image.ImageView getCell()
      Getter method for cell's ImageView
      Returns:
      cell's ImageView
    • setCell

      public void setCell(javafx.scene.image.ImageView cell)
      Setter method for cell's ImageView
      Parameters:
      cell - ImageView to set