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

Go to the source code of this file.

Classes

class  ai::ITask
 A node for your real actions in the behaviour tree. More...
 

Macros

#define TASK_CLASS_CTOR(TaskName)
 Macro for the constructor of a task. Just give the class name as parameter. More...
 
#define TASK_CLASS_DTOR(TaskName)   virtual ~TaskName()
 Macro for the destructor of a task. Just give the class name as parameter.
 
#define TASK_CLASS(TaskName)
 Macro to simplify the task creation. Just give the class name as parameter. More...
 

Macro Definition Documentation

#define TASK_CLASS (   TaskName)
Value:
TASK_CLASS_CTOR(TaskName) {}\
TASK_CLASS_DTOR(TaskName) {}
#define TASK_CLASS_CTOR(TaskName)
Macro for the constructor of a task. Just give the class name as parameter.
Definition: ITask.h:14
#define TASK_CLASS_DTOR(TaskName)
Macro for the destructor of a task. Just give the class name as parameter.
Definition: ITask.h:20

Macro to simplify the task creation. Just give the class name as parameter.

#define TASK_CLASS_CTOR (   TaskName)
Value:
TaskName(const std::string& name, const std::string& parameters, const ::ai::ConditionPtr& condition) : \
::ai::ITask(name, parameters, condition)

Macro for the constructor of a task. Just give the class name as parameter.