QtCraft API C++ classes QML types Handbook

QcServerCombat::Blow Struct

struct QcServerCombat::Blow

A blow or a hit on a creature: from where, and the player who dealt it (only then it gives experience and provokes a neutral creature, decision E-460, and villages and golems remember them: QcGolemGrudges, decision E-471). More...

Public Variables

quint32 attacker
quint32 creature
double damage
QcVec3 from
double knockback
double lift

Detailed Description

Member Variable Documentation

quint32 Blow::attacker

Entity id of the player; 0 for none (a creature's blow or shot).

quint32 Blow::creature

Entity id of the creature hit.

double Blow::damage

The damage dealt.

QcVec3 Blow::from

Where the blow came from.

double Blow::knockback

Strength of the push away from from; 1 is a blow's (decision E-427).

double Blow::lift

Times a blow's usual lift (a golem's throws upwards, decision E-471).