Package org.rspeer.game.position.area
Class RectangularArea
- java.lang.Object
-
- org.rspeer.game.position.area.RectangularArea
-
-
Constructor Summary
Constructors Constructor Description RectangularArea(int floorLevel, Position a, Position b)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Area
adjust(int x, int y)
boolean
contains(SceneNode entity)
Set<Position>
edges()
Deprecated.Position
getBottomLeft()
Position
getBottomRight()
Collection<Position>
getBoundaryPositions(boolean outer)
Collection<Position>
getBoundaryVertices()
int
getFloorLevel()
int
getHeight()
Collection<Position>
getTiles()
Position
getTopLeft()
Position
getTopRight()
int
getWidth()
Range
getXs()
Range
getYs()
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
-
-
-
-
Method Detail
-
edges
@Deprecated public Set<Position> edges()
Deprecated.
-
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
-
getXs
public Range getXs()
-
getYs
public Range getYs()
-
getBottomLeft
public Position getBottomLeft()
-
getBottomRight
public Position getBottomRight()
-
getTopLeft
public Position getTopLeft()
-
getTopRight
public Position getTopRight()
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
-