Class PuzzleAgent
- java.lang.Object
-
- org.activecomponents.examples.puzzleng.PuzzleAgent
-
- All Implemented Interfaces:
IPuzzleService
public class PuzzleAgent extends java.lang.Object implements IPuzzleService
Simple test implementation of puzzle server side.
-
-
Constructor Summary
Constructors Constructor Description PuzzleAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
moved(int x, int y)
Announce that a move has been made.IFuture<java.lang.Void>
newGame(int size)
Announce that a new game has started.IFuture<java.lang.Void>
takenBack()
Announce that the last move has been taken back.
-
-
-
Method Detail
-
newGame
public IFuture<java.lang.Void> newGame(int size)
Announce that a new game has started.- Specified by:
newGame
in interfaceIPuzzleService
-
moved
public IFuture<java.lang.Void> moved(int x, int y)
Announce that a move has been made.- Specified by:
moved
in interfaceIPuzzleService
-
takenBack
public IFuture<java.lang.Void> takenBack()
Announce that the last move has been taken back.- Specified by:
takenBack
in interfaceIPuzzleService
-
-