java.lang.Object
Model.gameClasses.Board.BoardSquare
- Enclosing class:
Board
This class represents every square in the board - it has a Tile and a color
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BoardSquare
public BoardSquare()
-
-
Method Details
-
setColor
public void setColor(int color) - Parameters:
color- an int that represent the following colors: Green = 0 Cyan - 1 Blue - 2 Yellow - 3 Red - 4 Star - 5
-
setTile
initialize a given tile into a square- Parameters:
tile- a tile to place on the square
-
getColor
public int getColor()get the square color- Returns:
- the color of the square
-
getTile
- Returns:
- the tile that placed on this square
-