QtCraft API C++ classes QML types Handbook

QcStructureDefinition::Mob Struct

struct QcStructureDefinition::Mob

A creature placed with the structure (an entry of "mobs"). More...

Public Variables

QcVec3 at
int children
bool confined
QString mob
bool noAi
QString owner
bool sitting

Detailed Description

Member Variable Documentation

QcVec3 Mob::at

Where it is placed ("at", a local point at most 4 blocks outside the structure).

int Mob::children

Children split off it at once, linked to it (a parent of a family, QcMobDefinition::family, decision E-839; "children": 3; at most the family's maxChildren). They have a mind even when the parent has none (noAi), so they orbit it.

bool Mob::confined

Stays in its enclosure (decision E-460): it neither teleports nor changes the world (decision E-510; the showcase's pens; "confined": true in structure data).

QString Mob::mob

Qualified creature name ("mob").

bool Mob::noAi

Without a mind, like the reference's NoAI (decision E-510; "noAi": true): it stands where it is put.