Package com.prineside.tdi2.screens
Class TicTacToeScreen.FixedSizeSmallBoard
java.lang.Object
com.prineside.tdi2.screens.TicTacToeScreen.Board
com.prineside.tdi2.screens.TicTacToeScreen.FixedSizeSmallBoard
- Enclosing class:
 - TicTacToeScreen
 
- 
Field Summary
Fields inherited from class com.prineside.tdi2.screens.TicTacToeScreen.Board
cellCount, rules - 
Constructor Summary
ConstructorsConstructorDescription - 
Method Summary
Modifier and TypeMethodDescriptionvoidcpy()bytegetCell(short idx) com.badlogic.gdx.utils.ShortArraycom.badlogic.gdx.utils.ShortArraygetFittingWinnerMaskAsync(long[] threadLocalBits) intgetFittingWinnerMasksCountAsync(long[] threadLocalBits, byte player) intbytebytegetWinnerAsync(long[] threadLocalBits) booleanvoidsetCell(short idx, byte val) Methods inherited from class com.prineside.tdi2.screens.TicTacToeScreen.Board
getCell, getCellIdx, getOpponent, getPlayerName, getRules, hasEmptyCells, isEmpty, toString 
- 
Constructor Details
- 
FixedSizeSmallBoard
 - 
FixedSizeSmallBoard
 
 - 
 - 
Method Details
- 
cpy
- Specified by:
 cpyin classTicTacToeScreen.Board
 - 
hasSameField
- Specified by:
 hasSameFieldin classTicTacToeScreen.Board
 - 
getTotalTickCount
public int getTotalTickCount()- Specified by:
 getTotalTickCountin classTicTacToeScreen.Board
 - 
copyFieldFrom
- Specified by:
 copyFieldFromin classTicTacToeScreen.Board
 - 
getCell
public byte getCell(short idx) - Specified by:
 getCellin classTicTacToeScreen.Board
 - 
setCell
public void setCell(short idx, byte val) - Specified by:
 setCellin classTicTacToeScreen.Board
 - 
getWinner
public byte getWinner()- Specified by:
 getWinnerin classTicTacToeScreen.Board- Returns:
 - winning player's tick (TICK_PLAYER or TICK_ENSOR) or 0 in case nobody has won yet / tie
 
 - 
getFittingWinnerMask
public com.badlogic.gdx.utils.ShortArray getFittingWinnerMask()- Specified by:
 getFittingWinnerMaskin classTicTacToeScreen.Board
 - 
getFittingWinnerMaskAsync
public com.badlogic.gdx.utils.ShortArray getFittingWinnerMaskAsync(long[] threadLocalBits) - Specified by:
 getFittingWinnerMaskAsyncin classTicTacToeScreen.Board
 - 
getWinnerAsync
public byte getWinnerAsync(long[] threadLocalBits) - Specified by:
 getWinnerAsyncin classTicTacToeScreen.Board
 - 
getFittingWinnerMasksCountAsync
public int getFittingWinnerMasksCountAsync(long[] threadLocalBits, byte player) - Specified by:
 getFittingWinnerMasksCountAsyncin classTicTacToeScreen.Board
 
 -