QtCraft API C++ classes QML types Handbook

QcPrimedExplosive Struct

A lit explosive counting down to its explosion (decision E-601); QcPrimedExplosives moves it like a falling block and counts its fuse down, QcServerExplosions sets it off. More...

Header: #include <server/entities/QcPrimedExplosive.h>
Inherits: QcEntity

Public Variables

QcBlockId block
int fuse

Static Public Members

const QcEntityKind entityKind

Detailed Description

Member Variable Documentation

QcBlockId QcPrimedExplosive::block

The explosive block it was lit from: its power and whether it sets fires, and its look.

const QcEntityKind QcPrimedExplosive::entityKind

The kind of every entity of this type (QcEntity::as).

int QcPrimedExplosive::fuse

Ticks left until it explodes; 0 while it waits for a free place among the explosions of a tick.