Home
last modified time | relevance | path

Searched refs:EMPTY (Results 1 – 2 of 2) sorted by relevance

/development/samples/TicTacToeLib/src/com/example/android/tictactoe/library/
DGameActivity.java159 if (data[index] == State.EMPTY) { in handleMessage()
197 if (data[k] != State.EMPTY && data[k] == data[k+1] && data[k] == data[k+2]) { in checkGameFinished()
200 if (full && (data[k] == State.EMPTY || in checkGameFinished()
201 data[k+1] == State.EMPTY || in checkGameFinished()
202 data[k+2] == State.EMPTY)) { in checkGameFinished()
209 if (data[i] != State.EMPTY && data[i] == data[i+3] && data[i] == data[i+6]) { in checkGameFinished()
215 if (data[0] != State.EMPTY && data[0] == data[1+3] && data[0] == data[2+6]) { in checkGameFinished()
217 } else if (data[2] != State.EMPTY && data[2] == data[1+3] && data[2] == data[0+6]) { in checkGameFinished()
228 setFinished(State.EMPTY, -1, -1, -1); in checkGameFinished()
250 if (player == State.EMPTY) { in setWinState()
DGameView.java50 EMPTY(0), enumConstant
70 return EMPTY; in fromInt()
98 private State mSelectedValue = State.EMPTY;
100 private State mWinner = State.EMPTY;
142 mData[i] = State.EMPTY; in GameView()
312 state = state == State.EMPTY ? mCurrentPlayer : State.EMPTY;
322 if (state != State.EMPTY) {
339 boolean hadSelection = mSelectedCell != -1 && mSelectedValue != State.EMPTY;
341 mSelectedValue = State.EMPTY;
405 mSelectedValue = State.fromInt(b.getInt("gv_sel_val", State.EMPTY.getValue()));
[all …]