Back to project page memory-game-android.
The source code is released under:
MIT License
If you think the Android project memory-game-android 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 catalinc.games.memory_game; // w w w . j a va 2 s.c om import java.io.Serializable; public class Tile implements Serializable { public static final int STATE_HIDDEN = 0; public static final int STATE_SELECTED = 1; public static final int STATE_SOLVED = 2; private int color; private int state; private int animationSteps; private int row; private int col; public Tile(int color, int state) { this.color = color; this.state = state; this.row = -1; this.col = -1; this.animationSteps = 0; } public int getColor() { return color; } public void setColor(int color) { this.color = color; } public int getState() { return state; } public void setState(int state) { this.state = state; } public int getRow() { return row; } public void setRow(int row) { this.row = row; } public int getCol() { return col; } public void setCol(int col) { this.col = col; } public int getAnimationSteps() { return animationSteps; } public void setAnimationSteps(int animationCount) { this.animationSteps = animationCount; } }