A* Pathfinding Project  4.3.2
The A* Pathfinding Project for Unity 3D
BTNode Class Referenceabstract

Implements a simple behavior tree. More...

Detailed Description

Implements a simple behavior tree.

This is the base class for all nodes in the tree.

Public Member Functions

void Terminate (BTContext ctx)
Status Tick (BTContext ctx)

Protected Member Functions

abstract Status DoTick (BTContext ctx)
virtual void OnInit (BTContext ctx)
virtual void OnTerminate (BTContext ctx)

Protected Attributes

Status lastStatus

Member Function Documentation

◆ DoTick()

abstract Status DoTick ( BTContext  ctx)
protectedpure virtual

◆ OnInit()

virtual void OnInit ( BTContext  ctx)

Reimplemented in Harvest, BTMove, BTSelector, and BTSequence.

◆ OnTerminate()

virtual void OnTerminate ( BTContext  ctx)

◆ Terminate()

void Terminate ( BTContext  ctx)

◆ Tick()

Status Tick ( BTContext  ctx)

Member Data Documentation

◆ lastStatus

Status lastStatus

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