deAINodeChain Class Reference

AI Node Chain Class. More...

#include <deAINodeChain.h>

Inheritance diagram for deAINodeChain:
deAINode deObject

List of all members.

Public Member Functions

Constructors and Destructors
 deAINodeChain ()
 Creates a new ai node.
virtual ~deAINodeChain ()
 Cleans up the ai node.
Management
deAIConditionGetCondition () const
 Retrieves the condition or NULL.
void SetCondition (deAICondition *condition)
 Sets the condition or NULL.
bool GetStopAfterFirst () const
 Determines if the execution stops after the first processed node.
void SetStopAfterFirst (bool stopAfterFirst)
 Sets if the execution stops after the first processed node.
Nodes
int GetNodeCount () const
 Retrieves the count of nodes.
deAINodeGetNodeAt (int index) const
 Retrieves the node at the given index.
int IndexOfNode (deAINode *node) const
 Retrieves the index of the given node or -1 if not found.
bool HasNode (deAINode *node) const
 Determines if the given node exists.
void AddNode (deAINode *node)
 Adds a node.
void RemoveNode (deAINode *node)
 Removes the given node.
void RemoveAllNodes ()
 Removes all nodes.
Visiting
virtual void Visit (deAINodeVisitor *visitor)
 Visits the rule.

Detailed Description

AI Node Chain Class.

Processes a multiple nodes in a given order. The nodes are only processed if a given condition holds true. If no condition is set the chain executes always. If stop after first is set the execution stops after the first node which has been processed.

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

Constructor & Destructor Documentation

deAINodeChain::deAINodeChain (  )

Creates a new ai node.

virtual deAINodeChain::~deAINodeChain (  ) [virtual]

Cleans up the ai node.


Member Function Documentation

void deAINodeChain::AddNode ( deAINode node )

Adds a node.

deAICondition* deAINodeChain::GetCondition (  ) const [inline]

Retrieves the condition or NULL.

deAINode* deAINodeChain::GetNodeAt ( int  index ) const

Retrieves the node at the given index.

int deAINodeChain::GetNodeCount (  ) const [inline]

Retrieves the count of nodes.

bool deAINodeChain::GetStopAfterFirst (  ) const [inline]

Determines if the execution stops after the first processed node.

bool deAINodeChain::HasNode ( deAINode node ) const

Determines if the given node exists.

int deAINodeChain::IndexOfNode ( deAINode node ) const

Retrieves the index of the given node or -1 if not found.

void deAINodeChain::RemoveAllNodes (  )

Removes all nodes.

void deAINodeChain::RemoveNode ( deAINode node )

Removes the given node.

void deAINodeChain::SetCondition ( deAICondition condition )

Sets the condition or NULL.

void deAINodeChain::SetStopAfterFirst ( bool  stopAfterFirst )

Sets if the execution stops after the first processed node.

virtual void deAINodeChain::Visit ( deAINodeVisitor visitor ) [virtual]

Visits the rule.

Reimplemented from deAINode.


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