QtCraft API C++ classes QML types Handbook

QcMobExchange Namespace

The data the creatures exchange with the rest of the server (decision E-422): what they know of the players (PlayerView), the blows and block changes their brains decide in a tick and the server carries out after it (PlayerHit, CreatureHit, BlockAction), and a persistent creature as saved with the world (Stored). More...

Header: #include <server/mobs/QcMobExchange.h>

Classes

struct BlockAction
struct CreatureHit
struct PlayerHit
struct PlayerView
struct Stored

Detailed Description

QcMobManager names them as its own members.

Classes

class BlockAction

A block a creature takes or puts down in a tick (a shadewalker, decision E-460), which the server carries out after the tick with the usual block changes (QcCreatureTraits): taking only when block is still there, placing only into air; dropping (game rule mobGriefing off) lets the carried block fall as an item. More...

class CreatureHit

A blow of one creature at another (a golem at a hostile creature, decision E-471; a pet at its owner's foe, decision E-480); the server deals it after the tick (QcServerCreatures). More...

class PlayerHit

A blow of a creature at a player; the server deals it after the tick. More...

class PlayerView

What the mob logic needs to know about a player. More...

class Stored

A persistent mob as saved with the world. More...