Back to project page abalone-android.
The source code is released under:
GNU General Public License
If you think the Android project abalone-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.
/** * Copyright (c) 2010-2011 Yaroslav Geryatovich, Alexander Yakushev * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. *//* ww w . j a va 2s . c o m*/ package com.bytopia.abalone.mechanics; /** * Interface that describes how the Watcher objects should operate in order to * display game progress. * * @author Bytopia */ public interface Watcher { /** * Updates the current view managed by the watcher. */ void updateView(); /** * Starts the animation of the move with a given type made in the following * direction. * * @param moveType * type of the move that was performed * @param direction * the direction of this move */ void doAnimation(MoveType moveType, byte direction); /** * Displays information that the game is over and shows the given side as a * winner. * * @param side * side that won the game */ void win(byte side); /** * Triggers when one of the side captures enemy's marble. * * @param side * the side that has captured the marble */ void marbleCaptured(byte side); }