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

A high-level abstraction of actions in the game. More...

Inheritance diagram for Grail.Behavior:

Public Member Functions

virtual void Start (AIEntity owner)
 
virtual void Update (AIEntity owner, float deltaTime)
 
virtual void Finish (AIEntity owner, in BehaviorStatus status)
 
virtual bool IsFinished (AIEntity owner)
 
virtual bool IsLegal (AIEntity owner)
 
virtual bool IsInterruptible ()
 

Detailed Description

A high-level abstraction of actions in the game.

Member Function Documentation

◆ Finish()

virtual void Grail.Behavior.Finish ( AIEntity  owner,
in BehaviorStatus  status 
)
inlinevirtual

Invoked after the behavior is finished or interrupted

Parameters
owner- the entity executing this behavior

Reimplemented in Grail.BehaviorSequence.

◆ IsFinished()

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

Reimplemented in Grail.BehaviorSequence.

◆ IsLegal()

virtual bool Grail.Behavior.IsLegal ( AIEntity  owner)
inlinevirtual
Parameters
owner- the entity executing this behavior
Returns
true if this behavior instance should be considered by decision making algorithms, false otherwise

Reimplemented in Grail.BehaviorSequence.

◆ Start()

virtual void Grail.Behavior.Start ( AIEntity  owner)
inlinevirtual

Invoked after the behavior is assigned to AIEntity

Parameters
owner- the entity executing this behavior

Reimplemented in Grail.BehaviorSequence.

◆ Update()

virtual void Grail.Behavior.Update ( AIEntity  owner,
float  deltaTime 
)
inlinevirtual

Invoked on each AIManager update

Parameters
owner- the entity executing this behavior

Reimplemented in Grail.BehaviorSequence.


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