SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Classes | Macros
Selector.h File Reference
#include "tree/TreeNode.h"
Include dependency graph for Selector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ai::Selector
 Base class for all type of TreeNode selectors. More...
 

Macros

#define SELECTOR_CLASS(NodeName)
 

Macro Definition Documentation

#define SELECTOR_CLASS (   NodeName)
Value:
NodeName(const std::string& name, const std::string& parameters, const ConditionPtr& condition) : \
Selector(name, parameters, condition) { \
_type = AI_STRINGIFY(NodeName); \
} \
virtual ~NodeName() { \
} \
NODE_FACTORY(NodeName)
#define NODE_FACTORY(NodeName)
A node factory macro to ease and unify the registration at AIRegistry.
Definition: TreeNode.h:54