SAIStimulus

C++
struct SAIStimulus {
  EntityId sourceId;
  EntityId targetId;
  Vec3 pos;
  Vec3 dir;
  float radius;
  unsigned char type;
  unsigned char subType;
  unsigned char flags;
};
File

IAISystem.h

Description

AI Stimulus record. Stimuli are used to tell the perception manager about important events happening in the gameworld such as sounds or grenades. When the stimulus is processed, it can be merged with previous stimuli in order to prevent too many stimuli to cause too many reactions.

SAIStimulus::dir Data Member
C++
Vec3 dir;
Description

Optional direction of the stimulus - for now, should be pre-normalised

SAIStimulus::flags Data Member
C++
unsigned char flags;
Description

Processing flags

SAIStimulus::pos Data Member
C++
Vec3 pos;
Description

Location of the stimulus

SAIStimulus::radius Data Member
C++
float radius;
Description

Radius of the stimulus

SAIStimulus::sourceId Data Member
C++
EntityId sourceId;
Description

The source of the stimulus

SAIStimulus::subType Data Member
C++
unsigned char subType;
Description

Stimulation sub-type

SAIStimulus::targetId Data Member
C++
EntityId targetId;
Description

Optional target of the stimulus

SAIStimulus::type Data Member
C++
unsigned char type;
Description

Stimulation type

SAIStimulus::SAIStimulus Constructor ()
C++
SAIStimulus();
SAIStimulus::SAIStimulus Constructor (EAIStimulusType, unsigned char, EntityId, EntityId, Vec3&, Vec3&, float, unsigned char)
C++
SAIStimulus(EAIStimulusType type, unsigned char subType, EntityId sourceId, EntityId targetId, const Vec3& pos, const Vec3& dir, float radius, unsigned char flags = 0);