QtCraft API C++ classes QML types Handbook

QcMineshaftPlan::Node Struct

struct QcMineshaftPlan::Node

A crossing, corner or dead end of a level, or the central room (node 0): an open box of (2 half + 1)^2 cells, height high above its floor. More...

Public Functions

bool contains(QcBlockPos pos) const

Public Variables

bool bridge
QcBlockPos centre
int half
int height
int level
int x
int z

Detailed Description

Member Function Documentation

bool Node::contains(QcBlockPos pos) const

Returns whether pos lies in its open box.

Member Variable Documentation

bool Node::bridge

Its floor crosses a cave somewhere: planks where it is open, a pillar under the centre.

QcBlockPos Node::centre

The feet cell in its middle.

int Node::half

Cells on each side of the middle.

int Node::height

Open cells above its floor.