QtCraft API C++ classes QML types Handbook

QcMsg::EntityMove Struct

struct QcMsg::EntityMove

The state of one entity in EntityMoves; the fields as in EntitySpawn. More...

Header: #include <common/protocol/QcEntityMessages.h>

Public Variables

quint16 flags
double health
QcItemId held
bool hurt
quint32 id
float pitch
QcVec3 position
bool struck
float yaw

Detailed Description

Member Variable Documentation

double EntityMove::health

As EntitySpawn::health.

bool EntityMove::hurt

Set in the tick the entity took damage (for a hurt flash).

quint32 EntityMove::id

The entity's id.

QcVec3 EntityMove::position

The entity's position.

bool EntityMove::struck

Set in the tick a blow struck the entity: an attack, a projectile, an explosion (not burning, drowning or suffocation); a squid leaves its ink cloud (decision E-974).

float EntityMove::yaw

Horizontal view angle in degrees.