QcArcherDefinition Struct
How a creature with the archer AI shoots (decision E-426), from its data (archer). More...
| Header: | #include <common/content/mobs/QcMobTraits.h> |
Public Types
| struct | Choice |
Public Variables
| QList<QcArcherDefinition::Choice> | choices |
| double | cooldownSeconds |
| double | drawSeconds |
| double | keepDistance |
| double | minDistance |
| QString | projectile |
| double | range |
| double | speed |
| double | spreadDegrees |
Static Public Members
| const int | maxChoices |
Detailed Description
Server side only.
Member Variable Documentation
QList<QcArcherDefinition::Choice> QcArcherDefinition::choices
The first choice whose effect the target lacks is shot, else projectile.
const int QcArcherDefinition::maxChoices
Most entries of choices.
QString QcArcherDefinition::projectile
Name of the QcProjectileDefinition it shoots.
double QcArcherDefinition::speed
Launch speed in m/s (the projectile's damage grows with it).
double QcArcherDefinition::spreadDegrees
Random deviation of a shot from its aim, in degrees (the spread of the reference's archers on normal difficulty; this game has no difficulty).