DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
Trigger Class Reference

#include <scriptedEntities.h>

Inheritance diagram for Trigger:
ScriptedEntity ItemTrigger TrapTrigger

Private Member Functions

protected void  Cleanup ()
 
void  OnEnter (Object obj)
 
void  OnLeave (Object obj)
 
protected void  UpdateInsiders ()
 
protected void  AddInsider (Object obj)
 
void  EOnFrame (_entity other, float timeSlice)
 
void  EOnTouch (_entity other, int extra)
 
private float  GetRadius (vector min, vector max)
 
void  SetExtents (vector mins, vector maxs)
 
void  EOnInit (_entity other, int extra)
 
private void  ~Trigger ()
 
private void  Trigger ()
 

Private Attributes

const int  TIMEOUT = 1000
 
autoptr array< TriggerInsider m_insiders
 
Shape  shape
 

Constructor & Destructor Documentation

private void Trigger::~Trigger ( )
private

References Cleanup().

private void Trigger::Trigger ( )
private

References SetEventMask(), and SetFlags().

Member Function Documentation

protected void Trigger::Cleanup ( )
private

References Shape::Destroy().

Referenced by ~Trigger().

void Trigger::OnEnter ( Object  obj )
private

References DebugTrigger, EEOnEnter, EntityAI::OnEvent(), and Print().

Referenced by AddInsider().

void Trigger::OnLeave ( Object  obj )
private
protected void Trigger::UpdateInsiders ( )
private
protected void Trigger::AddInsider ( Object  obj )
private
void Trigger::EOnFrame ( _entity  other,
float  timeSlice 
)
private

References UpdateInsiders().

void Trigger::EOnTouch ( _entity  other,
int  extra 
)
private

References AddInsider().

private float Trigger::GetRadius ( vector  min,
vector  max 
)
private

References fabs(), and VectorLength().

Referenced by SetExtents().

void Trigger::SetExtents ( vector  mins,
vector  maxs 
)
private
void Trigger::EOnInit ( _entity  other,
int  extra 
)
private

References SetExtents().

Member Data Documentation

const int Trigger::TIMEOUT = 1000
private
autoptr array<TriggerInsider> Trigger::m_insiders
private
Shape Trigger::shape
private

The documentation for this class was generated from the following file:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)