QtCraft API C++ classes QML types Handbook

QcHangingEntity Struct

An item frame or a painting on a block face (decisions E-790, E-791): no AI, no physics; it hangs where it was placed until its wall or its room goes (QcServerHanging::tick). More...

Header: #include <server/entities/QcHangingEntity.h>
Inherits: QcEntity

Public Variables

QcHanging hanging
QcItemStack held
QString item

Static Public Members

const QcEntityKind entityKind

Detailed Description

Its position is the middle of its front (QcHanging::centre).

Member Variable Documentation

const QcEntityKind QcHangingEntity::entityKind

The kind of every entity of this type (QcEntity::as).

QcHanging QcHangingEntity::hanging

Where it hangs and what it shows: type, face, cell, size, rotation and motif.

QcItemStack QcHangingEntity::held

Item frames: the one item shown, empty for none.

QString QcHangingEntity::item

The item that placed it and that it drops (item frame, painting).