Back to project page DroidChineseCheckers.
The source code is released under:
Apache License
If you think the Android project DroidChineseCheckers 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 com.whiterabbit.checkers.board; /*from www. ja va 2 s . c om*/ public class LastMove { BoardCell lastStart; BoardCell lastDest; BoardCell lastEaten; boolean updated = false; public void update(BoardCell start, BoardCell dest, BoardCell eaten){ lastStart = start; lastDest = dest; lastEaten = eaten; updated = true; } public void reset(){ updated = false; } public BoardCell getLastStart(){ return lastStart; } public BoardCell getLastDest(){ return lastDest; } public BoardCell getLastEaten(){ return lastEaten; } public boolean canMoveBack(){ return updated; } }