public class Placement extends 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 |
---|---|
LinkedHashSet<LinkedHashSet<Coord>> |
getAlongStraightWalls()
Gets a LinkedHashSet of LinkedHashSet of Coord, where each inner LinkedHashSet of Coord refers to a placement
region along a straight wall with length 3 or more, not including corners.
|
LinkedHashSet<LinkedHashSet<Coord>> |
getCenters()
Gets a LinkedHashSet of LinkedHashSet of Coord, where each inner LinkedHashSet of Coord refers to a room's cells
that are furthest from the walls, and each Coord is one of those central positions.
|
LinkedHashSet<LinkedHashSet<Coord>> |
getCorners()
Gets a LinkedHashSet of LinkedHashSet of Coord, where each inner LinkedHashSet of Coord refers to a room's
corners, and each Coord is one of those corners.
|
LinkedHashSet<Coord> |
getHidingPlaces(Radius radiusStrategy,
int range)
Gets a LinkedHashSet 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 LinkedHashSet<LinkedHashSet<Coord>> getAlongStraightWalls()
public LinkedHashSet<LinkedHashSet<Coord>> getCorners()
public LinkedHashSet<LinkedHashSet<Coord>> getCenters()
public LinkedHashSet<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 © 2012–2016. All rights reserved.