Abstract
Default constructor.
Optional
object: game_objecttarget game object to work with, null
is OK since correct object will be injected on setup
target game object to work with, null
is OK since correct object will be injected on setup
name of the action, used for debug purposes mainly
Static
Readonly
__nameName of luabind class constructor.
Readonly
__nameName of luabind class instance constructor.
Readonly
objectGame object that is handled by current action instance.
Readonly
storageContainer reference with state of action preconditions.
Add action effect. Describes what target world state is expected to be if action is completed.
world state property describing a pair of evaluator ID and value
Add action execution precondition. When building logics graph, action will be considered blocked by some preconditions.
world state property describing a pair of evaluator ID and value
Handle setup of the action and binding to a specific object.
target client object to work with
action instance storage with preconditions and state
Debug method. With mixed / debug build allows investigation of evaluators and actions matches. Helps to debug custom actions and actions pre-conditions with state printing in log files.
Note: Available only in mixed / debug engine builds, not for direct usage from lua.
Optional
prefix: stringstring prefix to display current action state in logs
Abstract class for implementation of GOAP planner actions.
Source
C++ class action_base
Custom Constructor
action_base