10 #ifndef _H_HBhvSensor_H
11 #define _H_HBhvSensor_H
55 static void *XMLCallback(HUtilityXMLTag *xt,
bool open,
void *m_pExtraData);
60 void Serialize(HUtilityXMLGenerator *xmlgen);
70 void Activate(
int delay = 0);
138 virtual void SetTarget(
const char *target);
158 virtual void Evaluate(
bool &and_flag,
bool &or_flag);
163 static void *XMLCallback(HUtilityXMLTag *xt,
bool open,
void *m_pExtraData);
168 virtual void Serialize(HUtilityXMLGenerator *xmlgen, HUtilityXMLTag *xmlt);
173 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
206 virtual void Evaluate(
bool &and_flag,
bool &or_flag);
211 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
236 virtual void Evaluate(
bool &and_flag,
bool &or_flag);
241 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
281 bool IsClicked(
HC_KEY target,
float x,
float y);
359 virtual int SensorActivatedEvent(
HBhvSensor * ainst);
364 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
388 virtual int SensorActionEvent(
const char * action);
393 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
415 virtual int AnimationFinishedEvent(
HBhvAnimation * animation);
420 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
449 virtual int OnLButtonDown(
HEventInfo &hevent);
454 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
491 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
527 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
595 void SetTargetByPath(
const char *targetpath);
600 static void *XMLCallback(HUtilityXMLTag *xt,
bool open,
void *m_pExtraData);
611 void Serialize(HUtilityXMLGenerator *xmlgen);
615 char m_Value[MVO_BUFFER_SIZE];
The HBhvConditionSensorActivated class evaluates if a sensor has been activated.
Definition: HBhvSensor.h:341
int m_Delay
Definition: HBhvSensor.h:114
The HBhvConditionAnimationFinished class evaluates if an animation has finished executing.
Definition: HBhvSensor.h:398
The HBhvConditionONMOUSEENTER class evaluates if the mouse pointer has entered the bounding box of th...
Definition: HBhvSensor.h:462
The HBhvConditionMouse class is the base class for all mouse related conditions.
Definition: HBhvSensor.h:249
bool m_bDefaultActive
Definition: HBhvSensor.h:112
HBhvBehaviorManager * GetBehaviorManager()
Definition: HBhvSensor.h:63
The HBhvBehaviorManager class stores and manages all animation related data.
Definition: HBhvBehaviorManager.h:237
struct vlist_s * m_ActionList
Definition: HBhvSensor.h:109
virtual void UnRegister()
The HBhvCondition class is the base class for all condition types.
Definition: HBhvSensor.h:119
struct vlist_s * m_ConditionList
Definition: HBhvSensor.h:108
HC_KEY m_OldKey
Definition: HBhvSensor.h:494
HC_KEY m_OldKey
Definition: HBhvSensor.h:530
The HBhvConditionSensorAction class evaluates if the target sensor has performed an action...
Definition: HBhvSensor.h:371
bool m_bInvert
Definition: HBhvSensor.h:180
The HBhvConditionSensor class is the base class for sensor related conditions.
Definition: HBhvSensor.h:314
virtual HBhvSensor * GetSensor()
Definition: HBhvSensor.h:141
const char * GetName()
Definition: HBhvSensor.h:96
The HBhvTargetObject class encapsulates various target types for animations and sensors.
Definition: HBhvBehaviorManager.h:82
The HBhvSensor class encapsulates an animation sensor.
Definition: HBhvSensor.h:33
virtual void UnRegister()
Definition: HBhvSensor.h:151
The HBhvConditionONLCLICK class evaluates if the given target was selected when the left mouse button...
Definition: HBhvSensor.h:428
virtual void Evaluate(bool &and_flag, bool &or_flag)
HBhvTargetObject * m_pTarget
Definition: HBhvSensor.h:177
HBhvSensor * m_pSensor
Definition: HBhvSensor.h:616
The HBhvAnimation class defines an animation.
Definition: HBhvAnimation.h:43
HBhvSensor * m_pSensor
Definition: HBhvSensor.h:179
The HBhvConditionONMOUSEENTER class evaluates if the mouse pointer has left the bounding box of the t...
Definition: HBhvSensor.h:498
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual void Serialize(HUtilityXMLGenerator *xmlgen, HUtilityXMLTag *xmlt)
The HBhvConditionAnimationRunning class evaluates if an animation is currently running for a given ta...
Definition: HBhvSensor.h:187
bool GetCurrentlyActive()
Definition: HBhvSensor.h:81
HBhvBehaviorManager * m_pBehaviorManager
Definition: HBhvSensor.h:106
bool m_bConditionMet
Definition: HBhvSensor.h:178
The HBhvAction class encapsulates an animation action.
Definition: HBhvSensor.h:572
virtual void Register()
Definition: HBhvSensor.h:146
The HBhvConditionSensorActive class evaluates if the given sensor is currently active.
Definition: HBhvSensor.h:216
bool GetDefaultActive()
Definition: HBhvSensor.h:78
The HBhvConditionAnimation class is the base class for all animation related conditions.
Definition: HBhvSensor.h:287
bool m_bCurrentlyActive
Definition: HBhvSensor.h:111
HBhvTargetObject * m_pTarget
Definition: HBhvSensor.h:617