Back to project page android-tic-tac-toe.
The source code is released under:
MIT License
If you think the Android project android-tic-tac-toe listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.shaon.android.tictactoe.model; /* w w w.java2s .co m*/ import org.shaon.android.tictactoe.model.State.Player; /** * Represent an action. An action consists of a row column location * and a player. It means player is assigned to that row column location. * * @author fahad */ public class Action { private Player player; private int row; private int column; public Action(Player player, int row, int column) { this.player = player; this.row = row; this.column = column; } public int getRow() { return row; } public void setRow(int row) { this.row = row; } public int getColumn() { return column; } public void setColumn(int column) { this.column = column; } public Player getPlayer() { return player; } public void setPlayer(Player player) { this.player = player; } }