QtCraft API C++ classes QML types Handbook

QcMobSteering::Melee Struct

struct QcMobSteering::Melee

A hostile creature without AI of its own (a crowd, QcMobCrowd) strikes the nearest player in melee (inMelee) when its attack is ready, so a knot of creatures is no safe place (a neutral one only the player that provoked it). More...

Header: #include <server/mobbrains/QcMobSteering.h>

Public Variables

std::optional<QcMobManager::PlayerHit> hit
bool struck

Detailed Description

Member Variable Documentation

std::optional<QcMobManager::PlayerHit> Melee::hit

The blow, when it landed.

bool Melee::struck

A player was in melee: the creature struck at them.