grail (C  1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.BehaviorSequence Class Reference

The BehaviorSequence class - specialized Behavior executing sequence of provided subbehaviors one by one. More...

Inheritance diagram for Grail.BehaviorSequence:
Collaboration diagram for Grail.BehaviorSequence:

Public Member Functions

void AddBehavior (Behavior behavior)
 AddBehavior - method emplacing new behavior in the sequence More...
 
override void Start (AIEntity owner)
 
override void Update (AIEntity owner, float deltaTime)
 
override void Finish (AIEntity owner, in BehaviorStatus status)
 
override bool IsFinished (AIEntity owner)
 
override bool IsLegal (AIEntity owner)
 IsLegal More...
 
override bool IsInterruptible ()
 IsInterruptible More...
 

Detailed Description

The BehaviorSequence class - specialized Behavior executing sequence of provided subbehaviors one by one.

Member Function Documentation

◆ AddBehavior()

void Grail.BehaviorSequence.AddBehavior ( Behavior  behavior)
inline

AddBehavior - method emplacing new behavior in the sequence

Parameters
behaviorbehavior added to the sequence

◆ Finish()

override void Grail.BehaviorSequence.Finish ( AIEntity  owner,
in BehaviorStatus  status 
)
inlinevirtual

Invoked after the behavior is finished or interrupted

Parameters
owner- the entity executing this behavior

Reimplemented from Grail.Behavior.

◆ IsFinished()

override bool Grail.BehaviorSequence.IsFinished ( AIEntity  owner)
inlinevirtual
Parameters
owner- the entity executing this behavior

Reimplemented from Grail.Behavior.

◆ IsInterruptible()

override bool Grail.BehaviorSequence.IsInterruptible ( )
inlinevirtual

IsInterruptible

Returns
true if current subbehavior is interruptible, false otherwise

Reimplemented from Grail.Behavior.

◆ IsLegal()

override bool Grail.BehaviorSequence.IsLegal ( AIEntity  owner)
inlinevirtual

IsLegal

Parameters
owner
Returns
true if current subbehavior is legal, false otherwise

Reimplemented from Grail.Behavior.

◆ Start()

override void Grail.BehaviorSequence.Start ( AIEntity  owner)
inlinevirtual

Invoked after the behavior is assigned to AIEntity

Parameters
owner- the entity executing this behavior

Reimplemented from Grail.Behavior.

◆ Update()

override void Grail.BehaviorSequence.Update ( AIEntity  owner,
float  deltaTime 
)
inlinevirtual

Invoked on each AIManager update

Parameters
owner- the entity executing this behavior

Reimplemented from Grail.Behavior.


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