Interface FigureMoveListener

    • Method Detail

      • beforeMove

        boolean beforeMove​(Figure f,
                           Point p,
                           Point newP,
                           AnimationInfo animation)
        Called, before the figure moves to a new point.
        f - The figure.
        p - The figures current point.
        newP - The point the figures wants to move to.
        animation - The AnimationInfo
        true, if figure can move.
      • removeAfterLevel

        boolean removeAfterLevel()
        Checks, if the listener wants to be removed after level has finished
        true, if listener should be removed after level ends.