Package com.prineside.tdi2.screens
Class TicTacToeScreen.Board
java.lang.Object
com.prineside.tdi2.screens.TicTacToeScreen.Board
- Direct Known Subclasses:
TicTacToeScreen.DynamicSizeBoard,TicTacToeScreen.FixedSizeSmallBoard
- Enclosing class:
- TicTacToeScreen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidabstract TicTacToeScreen.Boardcpy()abstract bytegetCell(short idx) final bytegetCell(short x, short y) final shortgetCellIdx(short x, short y) abstract com.badlogic.gdx.utils.ShortArrayabstract com.badlogic.gdx.utils.ShortArraygetFittingWinnerMaskAsync(long[] threadLocalBits) abstract intgetFittingWinnerMasksCountAsync(long[] threadLocalBits, byte player) final bytegetOpponent(byte player) final StringgetPlayerName(byte player) final TicTacToeScreen.RulesgetRules()abstract intabstract byteabstract bytegetWinnerAsync(long[] threadLocalBits) final booleanabstract booleanfinal booleanisEmpty()abstract voidsetCell(short idx, byte val) toString()
-
Field Details
-
rules
-
cellCount
public final short cellCount
-
-
Constructor Details
-
Board
-
Board
-
-
Method Details
-
cpy
-
hasSameField
-
getTotalTickCount
public abstract int getTotalTickCount() -
copyFieldFrom
-
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
-
getRules
-
toString
-