QtCraft API C++ classes QML types Handbook

QcFireQueue::Fire Struct

struct QcFireQueue::Fire

A burning fire with an entry in the queue. More...

Public Variables

quint8 age
quint64 due
bool eternal
QcBlockPos origin
QcBlockPos pos

Detailed Description

Member Variable Documentation

quint8 Fire::age

Steps taken; a new fire starts with the age of the fire that lit it.

quint64 Fire::due

The tick of its next step.

bool Fire::eternal

Whether it stands on eternal ground: it keeps no place in the caps. The queue keeps it in step with the block below (noteBlock, restore); add() takes it from the caller.

QcBlockPos Fire::origin

Where the fire that lit it began (the spark); fire spreads only within a reach of it.

QcBlockPos Fire::pos

The position of the fire block.