RiverCoordinate
class RiverCoordinate(position: Vector2, bottomRightOrLeft: RiverGenerator.RiverCoordinate.BottomRightOrLeft)
Content copied to clipboard
Describes a Vertex on our hexagonal grid via a neighboring hex and clock direction, normalized such that always the north-most hex and one of the two clock directions 5 / 7 o'clock are used.
Constructors
RiverCoordinate
Link copied to clipboard
fun RiverCoordinate(position: Vector2, bottomRightOrLeft: RiverGenerator.RiverCoordinate.BottomRightOrLeft)
Content copied to clipboard
Types
BottomRightOrLeft
Link copied to clipboard
enum BottomRightOrLeft : Enum<RiverGenerator.RiverCoordinate.BottomRightOrLeft>
Content copied to clipboard
Functions
getAdjacentPositions
Link copied to clipboard
fun getAdjacentPositions(tileMap: TileMap): Sequence<RiverGenerator.RiverCoordinate>
Content copied to clipboard
Lists the three neighboring vertices which have their anchor hex on the map (yes some positions on the map's outer border will be included, some not)
getAdjacentTiles
Link copied to clipboard
Lists the three neighboring hexes to this vertex which are on the map
Properties
Sources
jvm source
Link copied to clipboard