Class Board.BoardSquare

java.lang.Object
Model.gameClasses.Board.BoardSquare
Enclosing class:
Board

public static class Board.BoardSquare extends Object
This class represents every square in the board - it has a Tile and a color
  • 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

      public void setTile(Tile tile)
      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

      public Tile getTile()
      Returns:
      the tile that placed on this square