# HBhvCondition

## Functions

| `HBhvCondition`
| `~HBhvCondition`
void | `SetTarget`
HBhvSensor * | `GetSensor`
void | `Register`
void | `UnRegister`
void | `Evaluate`
void | `Serialize`
void | `Serialize`
void * | `XMLCallback`

## Detailed Description

class `HBhvCondition`

  The HBhvCondition class is the base class for all condition types.

  Subclassed by HBhvConditionAnimation, HBhvConditionAnimationRunning, HBhvConditionMouse, HBhvConditionSensor, HBhvConditionSensorActive

  Public Functions

  `HBhvCondition`(char const *target, char const *hevent, bool invert, HBhvSensor *sensor)

    Constructs an HBhvCondition object.

    Parameters: | target – The segment path of the target for this condition. hevent – The event type. invert – Pass true to invert the condition. In other words, this condition will return true if the condition evaluates to false and false if the condition evaluates to true. sensor – A pointer to the HBhvSensor object that this condition belongs to.

  virtual `~HBhvCondition`()
  virtual void `SetTarget`(char const *target)

    Sets a target for this condition.

    Parameters: | target – The segment path of the targetfor this condition.

  inline virtual HBhvSensor *`GetSensor`()

    Returns: | A pointer to the sensor object.

  inline virtual void `Register`()

    Registers the condition with event manager (if applicable)

  inline virtual void `UnRegister`()

    Unregisters condition from event manager (if applicable)

  virtual void `Evaluate`(bool &and_flag, bool &or_flag)

    Evaluates the condition.

    Parameters: | and_flag – Result of evaluation or_flag – Result of evaluation

  virtual void `Serialize`(HUtilityXMLGenerator *xmlgen, HUtilityXMLTag *xmlt)

    Writes XML data to a buffer.

  virtual void `Serialize`(HUtilityXMLGenerator *xmlgen)

    Writes XML data to a buffer.

  Public Static Functions

  static void *`XMLCallback`(HUtilityXMLTag *xt, bool open, void *m_pExtraData)

    This is XML read callback which parses XML data and then populates the member variables with the associated values.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Visualize 3DF in your own language, or choose a sample question below to start a conversation:

What is HOOPS Visualize 3DF?
What are the latest release notes for HOOPS Visualize 3DF?
How do I start evaluating HOOPS Visualize 3DF?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...