C4 Engine Terathon Software C4 Engine API Documentation

• World Manager

API Links
Developer Links

class TriggerObject

Defined in:  C4Triggers.h
The TriggerObject class encapsulates data pertaining to a trigger.
Definition

class TriggerObject : public Object, public VolumeObject

Member Functions
TriggerObject::GetTriggerType Returns the specific type of a trigger.
TriggerObject::GetTriggerFlags Returns the trigger flags.
TriggerObject::SetTriggerFlags Sets the trigger flags.
TriggerObject::GetTargetConnectorKey Returns the connector key for the trigger's target node.
TriggerObject::SetTargetConnectorKey Sets the connector key for the trigger's target node.
Constructor

TriggerObject(TriggerType type, Volume *volume);

The constructor has protected access. The TriggerObject class can only exist as the base class for another class.
Parameters
type The type of the trigger. See below for a list of possible types.
volume A pointer to the generic volume object representing the trigger.
Description
The TriggerObject class encapsulates data pertaining to a trigger. The particular subclass of the TriggerObject class determines the volumetric shape of the trigger.
kTriggerBox A box trigger.
kTriggerCylinder A cylinder trigger.
kTriggerSphere A sphere trigger.
Base Classes
Object A TriggerObject is an object that can be shared by multiple trigger nodes.
VolumeObject Used internally by the engine for generic volume objects.
See Also

Trigger