Package org.rspeer.game.position.area
Class PolygonalArea
- java.lang.Object
-
- org.rspeer.game.position.area.PolygonalArea
-
-
Constructor Summary
Constructors Constructor Description PolygonalArea(Position... edges)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Area
adjust(int x, int y)
boolean
contains(SceneNode entity)
Collection<Position>
getBoundaryPositions(boolean outer)
Collection<Position>
getBoundaryVertices()
int
getFloorLevel()
Polygon
getPolygon()
Collection<Position>
getTiles()
Area
ignoreFloorLevel()
Area
translate(int x, int y)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.rspeer.game.position.area.Area
getCenter, getRandomTile, isInFieldOfViewOf, isInFieldOfViewOf, translate
-
-
-
-
Constructor Detail
-
PolygonalArea
public PolygonalArea(Position... edges)
-
-
Method Detail
-
getBoundaryPositions
public Collection<Position> getBoundaryPositions(boolean outer)
- Specified by:
getBoundaryPositions
in interfaceArea
-
getBoundaryVertices
public Collection<Position> getBoundaryVertices()
- Specified by:
getBoundaryVertices
in interfaceArea
-
getFloorLevel
public int getFloorLevel()
- Specified by:
getFloorLevel
in interfaceArea
-
getTiles
public Collection<Position> getTiles()
-
ignoreFloorLevel
public Area ignoreFloorLevel()
- Specified by:
ignoreFloorLevel
in interfaceArea
-
getPolygon
public Polygon getPolygon()
-
-