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 bytegetCellByXY(short x, short y) final shortgetCellIdx(short x, short y) abstract ShortArrayabstract 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
 - 
getFittingWinnerMaskAsync
 - 
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)  - 
getCellByXY
public final byte getCellByXY(short x, short y)  - 
getOpponent
public final byte getOpponent(byte player)  - 
getPlayerName
 - 
getRules
 - 
toString
 
 -