Drag[en]gine Script Module DragonScript  1.23
Dragengine.BehaviorTreeSystem.BTBlockCondition Class Reference

Behavior tree condition using block. More...

Inheritance diagram for Dragengine.BehaviorTreeSystem.BTBlockCondition:
Dragengine.BehaviorTreeSystem.BTCondition

Public Member Functions

BTBlockCondition new (Block ablock)
 Create condition. More...
 
- Public Member Functions inherited from Dragengine.BehaviorTreeSystem.BTCondition
bool evaluateCondition (BTContext context, Dictionary parameters)
 Evaluate condition. More...
 

Public Attributes

Block pBlock
 

Detailed Description

Behavior tree condition using block.

Provides support to add tiny conditions often just calling a BTContext method without needing to implement a full class. The used block has to take one parameter of type BTContext context and Dictionary and parameters and has to return an boolean value. Do not change the content of the dictionary as it is shared.

new BTBlockCondition(block BTContext context, Dictionary parameters
// verify condition then return true or false
return true
end)

Member Function Documentation

◆ new()

BTBlockCondition Dragengine.BehaviorTreeSystem.BTBlockCondition.new ( Block  ablock)

Create condition.

Member Data Documentation

◆ pBlock

Block Dragengine.BehaviorTreeSystem.BTBlockCondition.pBlock

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