public class QueuingArea extends Area
Modifier and Type | Field and Description |
---|---|
private Position |
entrancePosition
Entrance position.
|
private Position |
leavingPosition
The leaving position.
|
shape
position
map
Constructor and Description |
---|
QueuingArea(double topX,
double topY,
double width,
double height,
Position entrancePosition,
Position leavingPosition)
Creates a queuing area.
|
QueuingArea(java.util.List<Position> corners,
Position entrancePosition,
Position leavingPosition)
Creates the area with a set of specified corner points.
|
Modifier and Type | Method and Description |
---|---|
Position |
getEntrancePosition()
Gets the entrance position.
|
Position |
getLeavingPosition()
Gets the leaving position.
|
contains, contains, generatePosition, generatePosition, generatePositions, generatePositions, getCorners, getVectorToPosition, isCollision, isLineCollision, toString
getDistance, getPosition
isDestroyed
private final Position entrancePosition
private final Position leavingPosition
public QueuingArea(double topX, double topY, double width, double height, Position entrancePosition, Position leavingPosition)
topX
- Top left x coordinate.topY
- Top left y coordinate.width
- The width.height
- The height.entrancePosition
- The entrance position.leavingPosition
- The leaving position.