AI Condition Visitor Identify. More...
#include <deAIConditionVisitorIdentify.h>
Public Types | |
| enum | eConditionTypes { ectUnknown, ectLogic, ectController, ectEvent } |
Public Member Functions | |
Constructors and Destructors | |
| deAIConditionVisitorIdentify () | |
| Creates a new animator condition visitor identify object. | |
| virtual | ~deAIConditionVisitorIdentify () |
| Cleans up the animator condition visitor identify. | |
Management | |
| int | GetType () const |
| Retrieves the condition type. | |
| bool | IsUnknown () const |
| Determines if this is an unknown condition. | |
| bool | IsLogic () const |
| Determines if this is a logic condition. | |
| bool | IsController () const |
| Determines if this is a controller condition. | |
| bool | IsEvent () const |
| Determines if this is a event condition. | |
| deAIConditionLogic * | CastToLogic () const |
| Cast to a logic condition. | |
| deAIConditionController * | CastToController () const |
| Cast to a controller condition. | |
| deAIConditionEvent * | CastToEvent () const |
| Cast to a event condition. | |
| void | Reset () |
| Resets the visitor. | |
Visiting | |
| virtual void | VisitCondition (deAICondition *condition) |
| Visits an ai condition. | |
| virtual void | VisitLogic (deAIConditionLogic *condition) |
| Visits a logic ai condition. | |
| virtual void | VisitController (deAIConditionController *condition) |
| Visits a controller ai condition. | |
| virtual void | VisitEvent (deAIConditionEvent *condition) |
| Visits a event ai condition. | |
AI Condition Visitor Identify.
AI condition visitor providing ai condition identification. After visiting an ai condition the visitor can be asked what kind of ai condition has been visited. Useful to identify ai conditions and to carry out actions only for centain ai condition types. Furthermore save casting is provided. If the cast is not valid an exception is raised.
| deAIConditionVisitorIdentify::deAIConditionVisitorIdentify | ( | ) |
Creates a new animator condition visitor identify object.
| virtual deAIConditionVisitorIdentify::~deAIConditionVisitorIdentify | ( | ) | [virtual] |
Cleans up the animator condition visitor identify.
| deAIConditionController* deAIConditionVisitorIdentify::CastToController | ( | ) | const |
Cast to a controller condition.
| deAIConditionEvent* deAIConditionVisitorIdentify::CastToEvent | ( | ) | const |
Cast to a event condition.
| deAIConditionLogic* deAIConditionVisitorIdentify::CastToLogic | ( | ) | const |
Cast to a logic condition.
| int deAIConditionVisitorIdentify::GetType | ( | ) | const [inline] |
Retrieves the condition type.
| bool deAIConditionVisitorIdentify::IsController | ( | ) | const [inline] |
Determines if this is a controller condition.
| bool deAIConditionVisitorIdentify::IsEvent | ( | ) | const [inline] |
Determines if this is a event condition.
| bool deAIConditionVisitorIdentify::IsLogic | ( | ) | const [inline] |
Determines if this is a logic condition.
| bool deAIConditionVisitorIdentify::IsUnknown | ( | ) | const [inline] |
Determines if this is an unknown condition.
| void deAIConditionVisitorIdentify::Reset | ( | ) |
Resets the visitor.
| virtual void deAIConditionVisitorIdentify::VisitCondition | ( | deAICondition * | condition ) | [virtual] |
Visits an ai condition.
Reimplemented from deAIConditionVisitor.
| virtual void deAIConditionVisitorIdentify::VisitController | ( | deAIConditionController * | condition ) | [virtual] |
Visits a controller ai condition.
Reimplemented from deAIConditionVisitor.
| virtual void deAIConditionVisitorIdentify::VisitEvent | ( | deAIConditionEvent * | condition ) | [virtual] |
Visits a event ai condition.
Reimplemented from deAIConditionVisitor.
| virtual void deAIConditionVisitorIdentify::VisitLogic | ( | deAIConditionLogic * | condition ) | [virtual] |
Visits a logic ai condition.
Reimplemented from deAIConditionVisitor.
1.7.2