Public Types

deAINodeVisitorIdentify Class Reference

AI Node Visitor Identify. More...

#include <deAINodeVisitorIdentify.h>

Inheritance diagram for deAINodeVisitorIdentify:
deAINodeVisitor

List of all members.

Public Types

enum  eNodeTypes { entUnknown, entChain, entSendEvent, entModifyAnimator }

Public Member Functions

Constructors and Destructors
 deAINodeVisitorIdentify ()
 Creates a new animator node visitor identify object.
virtual ~deAINodeVisitorIdentify ()
 Cleans up the animator node visitor identify.
Management
int GetType () const
 Retrieves the node type.
bool IsUnknown () const
 Determines if this is an unknown node.
bool IsChain () const
 Determines if this is a chain node.
bool IsSendEvent () const
 Determines if this is a send event node.
bool IsModifyAnimator () const
 Determines if this is a modify animator node.
deAINodeChainCastToChain () const
 Cast to a chain node.
deAINodeSendEventCastToSendEvent () const
 Cast to a send event node.
deAINodeModifyAnimatorCastToModifyAnimator () const
 Cast to a modify animator node.
void Reset ()
 Resets the visitor.
Visiting
virtual void VisitNode (deAINode *node)
 Visits an ai node.
virtual void VisitChain (deAINodeChain *node)
 Visits a chain ai node.
virtual void VisitSendEvent (deAINodeSendEvent *node)
 Visits a send event ai node.
virtual void VisitModifyAnimator (deAINodeModifyAnimator *node)
 Visits a modify animator ai node.

Detailed Description

AI Node Visitor Identify.

AI node visitor providing ai node identification. After visiting an ai node the visitor can be asked what kind of ai node has been visited. Useful to identify ai nodes and to carry out actions only for centain ai node types. Furthermore save casting is provided. If the cast is not valid an exception is raised.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Member Enumeration Documentation

Enumerator:
entUnknown 
entChain 
entSendEvent 
entModifyAnimator 

Constructor & Destructor Documentation

deAINodeVisitorIdentify::deAINodeVisitorIdentify (  )

Creates a new animator node visitor identify object.

virtual deAINodeVisitorIdentify::~deAINodeVisitorIdentify (  ) [virtual]

Cleans up the animator node visitor identify.


Member Function Documentation

deAINodeChain* deAINodeVisitorIdentify::CastToChain (  ) const

Cast to a chain node.

deAINodeModifyAnimator* deAINodeVisitorIdentify::CastToModifyAnimator (  ) const

Cast to a modify animator node.

deAINodeSendEvent* deAINodeVisitorIdentify::CastToSendEvent (  ) const

Cast to a send event node.

int deAINodeVisitorIdentify::GetType (  ) const [inline]

Retrieves the node type.

bool deAINodeVisitorIdentify::IsChain (  ) const [inline]

Determines if this is a chain node.

bool deAINodeVisitorIdentify::IsModifyAnimator (  ) const [inline]

Determines if this is a modify animator node.

bool deAINodeVisitorIdentify::IsSendEvent (  ) const [inline]

Determines if this is a send event node.

bool deAINodeVisitorIdentify::IsUnknown (  ) const [inline]

Determines if this is an unknown node.

void deAINodeVisitorIdentify::Reset (  )

Resets the visitor.

virtual void deAINodeVisitorIdentify::VisitChain ( deAINodeChain node ) [virtual]

Visits a chain ai node.

Reimplemented from deAINodeVisitor.

virtual void deAINodeVisitorIdentify::VisitModifyAnimator ( deAINodeModifyAnimator node ) [virtual]

Visits a modify animator ai node.

Reimplemented from deAINodeVisitor.

virtual void deAINodeVisitorIdentify::VisitNode ( deAINode node ) [virtual]

Visits an ai node.

Reimplemented from deAINodeVisitor.

virtual void deAINodeVisitorIdentify::VisitSendEvent ( deAINodeSendEvent node ) [virtual]

Visits a send event ai node.

Reimplemented from deAINodeVisitor.


The documentation for this class was generated from the following file: