Package it.polimi.ingsw.Client
Class CellDataModel
java.lang.Object
it.polimi.ingsw.Client.CellDataModel
This class defines board cells data model
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCellDataModel
(int x, int y, javafx.scene.image.ImageView cell) Constructor for CellDataModel class -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.image.ImageView
getCell()
Getter method for cell's ImageViewint
getX()
Getter method for x coordinateint
getY()
Getter method for y coordinatevoid
setCell
(javafx.scene.image.ImageView cell) Setter method for cell's ImageViewvoid
setX
(int x) Setter method for x coordinatevoid
setY
(int y) Setter method for y coordinate
-
Field Details
-
x
private int xCell's x coordinate -
y
private int yCell's y coordinate -
cell
private javafx.scene.image.ImageView cellCell's ImageView
-
-
Constructor Details
-
CellDataModel
public CellDataModel(int x, int y, javafx.scene.image.ImageView cell) Constructor for CellDataModel class- Parameters:
x
- coordinatey
- coordinatecell
- 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
-