15 #ifndef _H_HBhvSensor_H
16 #define _H_HBhvSensor_H
60 static void *XMLCallback(HUtilityXMLTag *xt,
bool open,
void *m_pExtraData);
65 void Serialize(HUtilityXMLGenerator *xmlgen);
75 void Activate(
int delay = 0);
143 virtual void SetTarget(
const char *target);
163 virtual void Evaluate(
bool &and_flag,
bool &or_flag);
168 static void *XMLCallback(HUtilityXMLTag *xt,
bool open,
void *m_pExtraData);
173 virtual void Serialize(HUtilityXMLGenerator *xmlgen, HUtilityXMLTag *xmlt);
178 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
211 virtual void Evaluate(
bool &and_flag,
bool &or_flag);
216 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
241 virtual void Evaluate(
bool &and_flag,
bool &or_flag);
246 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
286 bool IsClicked(
HC_KEY target,
float x,
float y);
364 virtual int SensorActivatedEvent(
HBhvSensor * ainst);
369 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
393 virtual int SensorActionEvent(
const char * action);
398 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
420 virtual int AnimationFinishedEvent(
HBhvAnimation * animation);
425 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
454 virtual int OnLButtonDown(
HEventInfo &hevent);
459 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
496 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
532 virtual void Serialize(HUtilityXMLGenerator *xmlgen);
600 void SetTargetByPath(
const char *targetpath);
605 static void *XMLCallback(HUtilityXMLTag *xt,
bool open,
void *m_pExtraData);
616 void Serialize(HUtilityXMLGenerator *xmlgen);
620 char m_Value[MVO_BUFFER_SIZE];
The HBhvConditionSensorActivated class evaluates if a sensor has been activated.
Definition: HBhvSensor.h:346
int m_Delay
Definition: HBhvSensor.h:119
The HBhvConditionAnimationFinished class evaluates if an animation has finished executing.
Definition: HBhvSensor.h:403
The HBhvConditionONMOUSEENTER class evaluates if the mouse pointer has entered the bounding box of th...
Definition: HBhvSensor.h:467
The HBhvConditionMouse class is the base class for all mouse related conditions.
Definition: HBhvSensor.h:254
bool m_bDefaultActive
Definition: HBhvSensor.h:117
HBhvBehaviorManager * GetBehaviorManager()
Definition: HBhvSensor.h:68
The HBhvBehaviorManager class stores and manages all animation related data.
Definition: HBhvBehaviorManager.h:241
struct vlist_s * m_ActionList
Definition: HBhvSensor.h:114
virtual void UnRegister()
The HBhvCondition class is the base class for all condition types.
Definition: HBhvSensor.h:124
struct vlist_s * m_ConditionList
Definition: HBhvSensor.h:113
HC_KEY m_OldKey
Definition: HBhvSensor.h:499
HC_KEY m_OldKey
Definition: HBhvSensor.h:535
The HBhvConditionSensorAction class evaluates if the target sensor has performed an action...
Definition: HBhvSensor.h:376
bool m_bInvert
Definition: HBhvSensor.h:185
The HBhvConditionSensor class is the base class for sensor related conditions.
Definition: HBhvSensor.h:319
virtual HBhvSensor * GetSensor()
Definition: HBhvSensor.h:146
const char * GetName()
Definition: HBhvSensor.h:101
The HBhvTargetObject class encapsulates various target types for animations and sensors.
Definition: HBhvBehaviorManager.h:86
The HBhvSensor class encapsulates an animation sensor.
Definition: HBhvSensor.h:38
virtual void UnRegister()
Definition: HBhvSensor.h:156
The HBhvConditionONLCLICK class evaluates if the given target was selected when the left mouse button...
Definition: HBhvSensor.h:433
virtual void Evaluate(bool &and_flag, bool &or_flag)
HBhvTargetObject * m_pTarget
Definition: HBhvSensor.h:182
HBhvSensor * m_pSensor
Definition: HBhvSensor.h:621
The HBhvAnimation class defines an animation.
Definition: HBhvAnimation.h:47
HBhvSensor * m_pSensor
Definition: HBhvSensor.h:184
The HBhvConditionONMOUSEENTER class evaluates if the mouse pointer has left the bounding box of the t...
Definition: HBhvSensor.h:503
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual void Serialize(HUtilityXMLGenerator *xmlgen, HUtilityXMLTag *xmlt)
The HBhvConditionAnimationRunning class evaluates if an animation is currently running for a given ta...
Definition: HBhvSensor.h:192
bool GetCurrentlyActive()
Definition: HBhvSensor.h:86
HBhvBehaviorManager * m_pBehaviorManager
Definition: HBhvSensor.h:111
bool m_bConditionMet
Definition: HBhvSensor.h:183
The HBhvAction class encapsulates an animation action.
Definition: HBhvSensor.h:577
virtual void Register()
Definition: HBhvSensor.h:151
The HBhvConditionSensorActive class evaluates if the given sensor is currently active.
Definition: HBhvSensor.h:221
bool GetDefaultActive()
Definition: HBhvSensor.h:83
The HBhvConditionAnimation class is the base class for all animation related conditions.
Definition: HBhvSensor.h:292
bool m_bCurrentlyActive
Definition: HBhvSensor.h:116
HBhvTargetObject * m_pTarget
Definition: HBhvSensor.h:622