Interface Area

    • Method Detail

      • getX

        int getX()
        Deprecated.
      • getY

        int getY()
        Deprecated.
      • getWidth

        int getWidth()
        Deprecated.
      • getHeight

        int getHeight()
        Deprecated.
      • surrounding

        static Area surrounding​(Position origin,
                                int distance)
        Deprecated.
      • rectangular

        static Area rectangular​(Position a,
                                Position b)
        Deprecated.
        Factory method to create a rectangular Area
        Parameters:
        a - A corner of the area
        b - Opposite corner of the area
        Returns:
        A rectangular area
      • rectangular

        static Area rectangular​(int x1,
                                int y1,
                                int x2,
                                int y2,
                                int floorLevel)
        Deprecated.
      • discreet

        static Area discreet​(Position a,
                             Position b)
        Deprecated.
        Factory method to create a discreet rectangular Area
        Parameters:
        a - A corner of the area
        b - Opposite corner of the area
        Returns:
        A rectangular area
      • discreet

        static Area discreet​(int x1,
                             int y1,
                             int x2,
                             int y2,
                             int floorLevel)
        Deprecated.
      • singular

        static Area singular​(Position p)
        Deprecated.
        Factory method to create a singular Area
        Parameters:
        p - The only position in the area
        Returns:
        A area with a singular position
      • polygonal

        static Area polygonal​(Position... edges)
        Deprecated.
        Factory method to create a polygonal area
        Parameters:
        edges - The edges of the area polygon
        Returns:
        A polygonal area
      • getRandomTile

        default Position getRandomTile()
        Deprecated.
      • getFloorLevel

        int getFloorLevel()
        Deprecated.
      • ignoreFloorLevel

        Area ignoreFloorLevel()
        Deprecated.
      • contains

        boolean contains​(SceneNode entity)
        Deprecated.
      • translate

        default Area translate​(int x,
                               int y)
        Deprecated.
      • translate

        default Area translate​(Direction direction)
        Deprecated.
      • getBoundaryPositions

        default Collection<Position> getBoundaryPositions​(boolean outer)
        Deprecated.
      • adjust

        default Area adjust​(int x,
                            int y)
        Deprecated.
      • isInFieldOfViewOf

        default boolean isInFieldOfViewOf​(Area o)
        Deprecated.
      • getCenter

        default Position getCenter()
        Deprecated.