RiverGenerator

class RiverGenerator(tileMap: TileMap, randomness: MapGenerationRandomness)

Types

Companion
Link copied to clipboard
object Companion
RiverCoordinate
Link copied to clipboard
class RiverCoordinate(position: Vector2, bottomRightOrLeft: RiverGenerator.RiverCoordinate.BottomRightOrLeft)

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.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getClosestWaterTile
Link copied to clipboard
private fun getClosestWaterTile(tile: TileInfo): TileInfo
hashCode
Link copied to clipboard
open fun hashCode(): Int
isFarEnoughFromWater
Link copied to clipboard
private fun TileInfo.isFarEnoughFromWater(): Boolean
spawnRiver
Link copied to clipboard
private fun spawnRiver(initialPosition: TileInfo)
spawnRivers
Link copied to clipboard
fun spawnRivers()
toString
Link copied to clipboard
open fun toString(): String

Properties

randomness
Link copied to clipboard
private val randomness: MapGenerationRandomness
tileMap
Link copied to clipboard
private val tileMap: TileMap

Sources

jvm source
Link copied to clipboard