Class TicTacToeScreen.Board

java.lang.Object
com.prineside.tdi2.screens.TicTacToeScreen.Board
Direct Known Subclasses:
TicTacToeScreen.DynamicSizeBoard, TicTacToeScreen.FixedSizeSmallBoard
Enclosing class:
TicTacToeScreen

public abstract static class TicTacToeScreen.Board extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • cpy

      public abstract TicTacToeScreen.Board cpy()
    • hasSameField

      public abstract boolean hasSameField(TicTacToeScreen.Board board)
    • getTotalTickCount

      public abstract int getTotalTickCount()
    • copyFieldFrom

      public abstract void copyFieldFrom(TicTacToeScreen.Board board)
    • getCell

      public abstract byte getCell(short idx)
    • setCell

      public abstract void setCell(short idx, byte val)
    • getWinner

      public abstract byte getWinner()
    • getFittingWinnerMask

      public abstract com.badlogic.gdx.utils.ShortArray getFittingWinnerMask()
    • getFittingWinnerMaskAsync

      public abstract com.badlogic.gdx.utils.ShortArray getFittingWinnerMaskAsync(long[] threadLocalBits)
    • getWinnerAsync

      public abstract byte getWinnerAsync(long[] threadLocalBits)
    • getFittingWinnerMasksCountAsync

      public abstract int getFittingWinnerMasksCountAsync(long[] threadLocalBits, byte player)
    • hasEmptyCells

      public final boolean hasEmptyCells()
    • isEmpty

      public final boolean isEmpty()
    • getCellIdx

      public final short getCellIdx(short x, short y)
    • getCell

      public final byte getCell(short x, short y)
    • getOpponent

      public final byte getOpponent(byte player)
    • getPlayerName

      public final String getPlayerName(byte player)
    • getRules

      public final TicTacToeScreen.Rules getRules()
    • toString

      public String toString()
      Overrides:
      toString in class Object