QcFireDefinition Struct
How a block takes part in fire (decision E-392). More...
| Header: | #include <common/content/blockbehaviour/QcFireDefinition.h> |
Public Functions
| bool | isFlammable() const |
Public Variables
Static Public Members
| const int | maxAlightSeconds |
| const int | maxChance |
Detailed Description
Server side only.
Member Function Documentation
bool QcFireDefinition::isFlammable() const
Returns whether fire can catch on next to the block or burn it away.
Member Variable Documentation
bool QcFireDefinition::eternal
"eternalFire": true: fire standing on the block never ages out and never spreads (the magma block as a hearth).
bool QcFireDefinition::isFire
The block is fire ("fire": true): it burns where it stands, spreads to flammable blocks near it and goes out on its own (QcServerFire).
const int QcFireDefinition::maxAlightSeconds
Longest time a body touching the block burns for (setsAlightSeconds).
const int QcFireDefinition::maxChance
Chances are given per 100 (ignite) and per 300 (burn), like the reference game.
int QcFireDefinition::setsAlightSeconds
"setsAlight": seconds a body touching the block burns for (fire 8, lava 15; decision E-393): it takes QcBodyBurning's damage every second until the time is over or water puts it out.
int QcFireDefinition::sparks
"sparks": chance in 100 that a block update of the block (lava) lights fire in an air cell right next to it that touches a flammable block (QcFireIgnition, decision E-393).