Class Word

java.lang.Object
Model.gameClasses.Word

public class Word extends Object
  • Constructor Details

    • Word

      public Word(Tile[] tiles, int row, int col, boolean vertical)
      Parameters:
      tiles - an array of tiles
      row - the row of the first letter
      col - the column of the first letter
      vertical - whether the word is vertical or not
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getTiles

      public Tile[] getTiles()
      Returns:
      the tiles array of the word
    • getRow

      public int getRow()
      Returns:
      the row of the first letter
    • getCol

      public int getCol()
      Returns:
      the column of the first letter
    • isVertical

      public boolean isVertical()
      Returns:
      true if the word is vertical, false if horizontal