QtCraft API C++ classes QML types Handbook

QcHandTimers Struct

Progress of the own player's hand animations in one frame (QcClientSession::handTimers): switching the held item, landing and using; 0..1 while running, negative otherwise. aim is how far the hand has come to a drawn launcher (decision E-984). More...

Header: #include <clientcore/player/QcHandTimers.h>

Public Variables

double aim
double landing
double lastDraw
bool mining
double switchProgress
double use

Static Public Members

const int aimTicks
const int landingTicks
const int switchTicks
const int useTicks

Detailed Description

The swing's progress is the pose's (QcEntityPose::swingProgress); mining says whether the running swing is the full loop of mining or the short swing of a single click, as it was when the swing started (decision E-881).

Member Variable Documentation

double QcHandTimers::aim

How far the hand has come to the drawn launcher, 0..1: it rises over aimTicks once the draw begins and falls as fast after the shot or when the draw is let go.

double QcHandTimers::landing

Progress of the landing.

double QcHandTimers::lastDraw

The draw the hand shows at least (0..1): the last draw's power, so it stays where it was after the shot until the aim has fallen, and fades within aimTicks when a new, weaker draw begins while the aim still falls.

bool QcHandTimers::mining

Whether the running swing is the full loop of mining (else a click's short swing).

double QcHandTimers::switchProgress

Progress of switching the held item.

double QcHandTimers::use

Progress of the use animation.