QtCraft API C++ classes QML types Handbook

QcBlastBlocks::Effects Struct

struct QcBlastBlocks::Effects

What a blast does to the cells it breaks: drops each with dropChance (the reference game's 1 / power) and, with fire, lights one in three that stands on a solid block. More...

Public Variables

QcBlockPos centre
double dropChance
bool fire

Detailed Description

Member Variable Documentation

QcBlockPos Effects::centre

The cell of the blast's centre (its dice).

double Effects::dropChance

The chance that a broken cell drops its items.

bool Effects::fire

The blast lights fires.