Interface FigureMoveListener

    • Method Detail

      • beforeMove

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

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