QtCraft API C++ classes QML types Handbook

QcHostileBrain Class

The brain of hostile creatures (QcMobDefinition::Ai::Hostile): they chase the nearest player they see (and for a few seconds one they lost sight of, decision E-401) along a path and strike it in melee with a line of sight; without a target they wander like passive ones. More...

Header: #include <server/mobbrains/QcCreatureBrains.h>
Inherits: QcPassiveBrain
Inherited By:

QcGuardianBrain

Reimplemented Protected Functions

virtual bool chases() const override

Detailed Description

Member Function Documentation

[override virtual protected] bool QcHostileBrain::chases() const

Reimplements: QcPassiveBrain::chases() const.