QtCraft API C++ classes QML types Handbook

QcBlastTable Class

What explosions need to know about every block state of a content (decision E-600), looked up once: how much of a blast's force it soaks up, whether it stops the sight of a blast on bodies (solid blocks do) and whether it is an explosive that a blast lights instead of breaking. More...

Header: #include <server/explosions/QcBlastTable.h>

Public Types

struct Entry

Public Functions

const QcBlastDefinition &blast(QcBlockId block) const
const QcContentRegistry &content() const
const QcBlastTable::Entry &of(QcBlockId block) const

Detailed Description

Member Function Documentation

const QcBlastDefinition &QcBlastTable::blast(QcBlockId block) const

Returns the explosive data of block (power, fuse, fire); meaningful only where explosive is set.

const QcContentRegistry &QcBlastTable::content() const

Returns the content the table was read from.

const QcBlastTable::Entry &QcBlastTable::of(QcBlockId block) const

Returns the entry of block.