QcArmourStand Struct
An armour stand (decisions E-238, E-364): wears armour, holds an item and has a pose; it has no AI, no health and no physics of its own and stands where it was placed until something pushes it. More...
| Header: | #include <server/entities/QcArmourStand.h> |
| Inherits: | QcEntity |
Public Variables
| QString | cape |
| QcEquipment | equipment |
| QcItemStack | held |
| quint32 | hitBy |
| QString | item |
| QString | name |
| QcStandPose | pose |
| double | sinceHit |
Static Public Members
| const double | breakWindow |
| const QcEntityKind | entityKind |
Detailed Description
Member Variable Documentation
const double QcArmourStand::breakWindow
A stand breaks when the same player hits it twice within this time (a single hit only wobbles it). Longer than the attack cooldown (QcServerCombat::playerAttackCooldown), during which hits do not count.
QString QcArmourStand::cape
The cape it wears (an appearance of the kind cape, decision E-239); empty for none.
const QcEntityKind QcArmourStand::entityKind
The kind of every entity of this type (QcEntity::as).
QcEquipment QcArmourStand::equipment
The armour it wears.
QcItemStack QcArmourStand::held
The item in its hand.
quint32 QcArmourStand::hitBy
The player (entity id) whose hit started the break window; 0 for none.
QString QcArmourStand::item
The item it drops when broken (the one that placed it).
QString QcArmourStand::name
Shown above it when pose.showName is set; at most QcArmourStandManager::maxNameLength Unicode code points (QcNameText).
QcStandPose QcArmourStand::pose
How it stands: a rotation per body part and what it shows.
double QcArmourStand::sinceHit
Seconds since the last hit; a second hit by hitBy within breakWindow breaks it.