AI Condition Controller Class. More...
#include <deAIConditionController.h>
Public Types | |
| enum | eOperators { eopEqual, eopNotEqual, eopLess, eopGreater, eopLessOrEqual, eopGreaterOrEqual } |
Compare operators. More... | |
Public Member Functions | |
Constructors and Destructors | |
| deAIConditionController () | |
| Creates a new ai condition. | |
| virtual | ~deAIConditionController () |
| Cleans up the ai condition. | |
Management | |
| deAIController * | GetController () const |
| Retrieves the controller. | |
| void | SetController (deAIController *controller) |
| Sets the controller. | |
| int | GetOperator () const |
| Retrieves the compare operator. | |
| void | SetOperator (int anOperator) |
| Sets the compare operator. | |
| int | GetConditionValue () const |
| Retrieves the condition value to compare against. | |
| void | SetConditionValue (int value) |
| Sets the condition value to compare against. | |
Visiting | |
| virtual void | Visit (deAIConditionVisitor *visitor) |
| Visits the rule. | |
AI Condition Controller Class.
Evaluates a controller comparing the value to a condition value.
| deAIConditionController::deAIConditionController | ( | ) |
Creates a new ai condition.
| virtual deAIConditionController::~deAIConditionController | ( | ) | [virtual] |
Cleans up the ai condition.
| int deAIConditionController::GetConditionValue | ( | ) | const [inline] |
Retrieves the condition value to compare against.
| deAIController* deAIConditionController::GetController | ( | ) | const [inline] |
Retrieves the controller.
| int deAIConditionController::GetOperator | ( | ) | const [inline] |
Retrieves the compare operator.
| void deAIConditionController::SetConditionValue | ( | int | value ) |
Sets the condition value to compare against.
| void deAIConditionController::SetController | ( | deAIController * | controller ) |
Sets the controller.
| void deAIConditionController::SetOperator | ( | int | anOperator ) |
Sets the compare operator.
| virtual void deAIConditionController::Visit | ( | deAIConditionVisitor * | visitor ) | [virtual] |
Visits the rule.
Reimplemented from deAICondition.
1.7.2