Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PuzzleAgent

        public PuzzleAgent()
    • Method Detail

      • newGame

        public IFuture<java.lang.Void> newGame​(int size)
        Announce that a new game has started.
        Specified by:
        newGame in interface IPuzzleService
      • moved

        public IFuture<java.lang.Void> moved​(int x,
                                             int y)
        Announce that a move has been made.
        Specified by:
        moved in interface IPuzzleService
      • takenBack

        public IFuture<java.lang.Void> takenBack()
        Announce that the last move has been taken back.
        Specified by:
        takenBack in interface IPuzzleService