public class Placement
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
RoomFinder |
finder
The RoomFinder this uses internally to find placement areas only where they are appropriate.
|
Constructor and Description |
---|
Placement(RoomFinder finder)
Constructs a Placement using the given RoomFinder, which will have collections of rooms, corridors, and caves.
|
Modifier and Type | Method and Description |
---|---|
OrderedSet<OrderedSet<Coord>> |
getAlongStraightWalls()
Gets an OrderedSet of OrderedSet of Coord, where each inner OrderedSet of Coord refers to a placement
region along a straight wall with length 3 or more, not including corners.
|
OrderedSet<OrderedSet<Coord>> |
getCenters()
Gets an OrderedSet of OrderedSet of Coord, where each inner OrderedSet of Coord refers to a room's cells
that are furthest from the walls, and each Coord is one of those central positions.
|
OrderedSet<OrderedSet<Coord>> |
getCorners()
Gets an OrderedSet of OrderedSet of Coord, where each inner OrderedSet of Coord refers to a room's
corners, and each Coord is one of those corners.
|
OrderedSet<Coord> |
getHidingPlaces(Radius radiusStrategy,
int range)
Gets an OrderedSet of Coord, where each Coord is hidden (using the given radiusStrategy and range for FOV
calculations) from any doorways or similar narrow choke-points where a character might be easily ambushed.
|
public RoomFinder finder
public Placement(RoomFinder finder)
finder
- a RoomFinder that must not be null.public OrderedSet<OrderedSet<Coord>> getAlongStraightWalls()
public OrderedSet<OrderedSet<Coord>> getCorners()
public OrderedSet<OrderedSet<Coord>> getCenters()
public OrderedSet<Coord> getHidingPlaces(Radius radiusStrategy, int range)
radiusStrategy
- a Radius object that will be used to determine visibility.range
- the minimum distance things are expected to hide at; often related to player FOV rangeCopyright © Eben Howard 2012–2022. All rights reserved.