QtCraft API C++ classes QML types Handbook

QcCoastalTowerPlan Struct

One coastal tower as the terrain generator builds it (decision E-605): a pure function of the seed, the region and the content, planned from the terrain noise alone (never from generated chunks), so every chunk writes its own cells of it and a tower spanning chunks comes out the same in any generation order (QcCoastalTowerGenerator::build). More...

Header: #include <worldgen/towers/QcCoastalTowerPlan.h>

Public Functions

QcXzRect footprint() const

Public Variables

QcBlockPos doorstep
QcBlockPos ocean
QcStructurePlacement placement
int regionX
int regionZ

Static Public Members

QcXzRect footprintOf(const QcStructurePlacement &placement)

Detailed Description

The structure's lowest layer replaces the ground's top block of the highest column under it; its door is the middle of the structure's south side, one layer above the floor.

Member Function Documentation

QcXzRect QcCoastalTowerPlan::footprint() const

Returns the columns covered by the tower.

[static] QcXzRect QcCoastalTowerPlan::footprintOf(const QcStructurePlacement &placement)

Returns the columns covered by placement.

Member Variable Documentation

QcBlockPos QcCoastalTowerPlan::doorstep

The ground's top block in front of the tower's door.

QcBlockPos QcCoastalTowerPlan::ocean

The nearest column of the open sea found around the footprint.

QcStructurePlacement QcCoastalTowerPlan::placement

The tower's structure, turned and placed in the world.

int QcCoastalTowerPlan::regionX

The x of the region it was planned for.

int QcCoastalTowerPlan::regionZ

The z of the region it was planned for.