public class Obstacle extends Object
IObstaclePartition
to subdivide an area
into PartitionCell
s.Constructor and Description |
---|
Obstacle(YRectangle bounds,
Object data)
Creates a new
Obstacle instance with the given bounds and additional data. |
Modifier and Type | Method and Description |
---|---|
YRectangle |
getBounds()
Gets the bounds of the obstacle.
|
Object |
getData()
Gets the additional data related to the obstacle.
|
public Obstacle(YRectangle bounds, Object data)
Obstacle
instance with the given bounds and additional data.bounds
- the bounds of the obstacledata
- the additional data associated to the obstaclepublic YRectangle getBounds()
YRectangle
representing the bounds of the obstaclepublic Object getData()