Interface Aerial

  • All Known Implementing Classes:
    Bumblebee, Butterfly, Grasshopper

    public interface Aerial
    Aerial interface
    Since:
    2.0.0
    Version:
    1.0.0
    Author:
    Andrew SASSOYE
    • Method Detail

      • step

        default Position step​(Position actualPosition,
                              Direction direction,
                              int nSquares,
                              Board board,
                              Animal[] animals)
        Returns next position after move. If Animal is present at destination, moves one extra.
        Parameters:
        actualPosition - Actual animal position
        direction - Direction of move
        nSquares - number of Squares to move
        board - Board
        animals - Animals
        Returns:
        Next position of the Animal