QtCraft API C++ classes QML types Handbook

QcJettyPlanner Namespace

The walkway of a piece with a water rule (decision E-404, QcVillageJetty), from the terrain noise alone like the rest of a village plan: from the end of a road straight on to the first water within reach, on the ground down to the shore and a few blocks out over the water just above it, with posts under its edges. More...

Header: #include <worldgen/villages/QcJettyPlanner.h>

Classes

struct Request

Variables

const int postSpacing

Functions

std::optional<QList<QcVillagePlan::Deck>> lay(const QcTerrainGenerator &terrain, const QcJettyPlanner::Request &request)

Detailed Description

Classes

class Request

Where and how to lay a walkway (lay()). More...

Variable Documentation

const int QcJettyPlanner::postSpacing

Posts stand this far apart along the walkway over the water.

Function Documentation

std::optional<QList<QcVillagePlan::Deck>> QcJettyPlanner::lay(const QcTerrainGenerator &terrain, const QcJettyPlanner::Request &request)

Returns the walkway's cells for request over terrain; std::nullopt when no water lies within reach, the ground before it steps by more than a block or is an overhang, the water is narrower than two blocks or the walkway touches a river delta (decision E-850).