Grail (C#)  1.4.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.Core.Reasoner Class Referenceabstract

Entity's "brain", assigns them behaviors chosen by user-defined algorithms. More...

Inheritance diagram for Grail.Core.Reasoner:

Public Member Functions

abstract void StageBehavior (AIEntity entity)
 Runs reasoner's selection algorithm and assigns chosen behavior to provided entity. More...
 
virtual ISnapshotGenerator CreateSnapshotGenerator (int entityId)
 
virtual void ClearCache ()
 Called when assigning this reasoner to an entity. Clears internally stored data, which may be invalidated when assigned to a different entity. THIS METHOD SHOULD NOT BE CALLED BY THE USER. IT IS PUBLIC SO THAT THIS METHOD CAN BE USED BY ENTITY AND OVERRIDEN IN DIFFERENT MODULE More...
 

Detailed Description

Entity's "brain", assigns them behaviors chosen by user-defined algorithms.

Member Function Documentation

◆ ClearCache()

virtual void Grail.Core.Reasoner.ClearCache ( )
inlinevirtual

Called when assigning this reasoner to an entity. Clears internally stored data, which may be invalidated when assigned to a different entity. THIS METHOD SHOULD NOT BE CALLED BY THE USER. IT IS PUBLIC SO THAT THIS METHOD CAN BE USED BY ENTITY AND OVERRIDEN IN DIFFERENT MODULE

Reimplemented in Grail.Planners.Reasoners.PlannerReasoner, Grail.SimulatedGames.Reasoners.SimulatedGameReasoner, and Grail.Utility.Reasoners.UtilityReasoner.

◆ StageBehavior()

abstract void Grail.Core.Reasoner.StageBehavior ( AIEntity  entity)
pure virtual

Runs reasoner's selection algorithm and assigns chosen behavior to provided entity.

Parameters
entity

Implemented in Grail.SimulatedGames.Reasoners.SimulatedGameReasoner, Grail.Planners.Reasoners.PlannerReasoner, and Grail.Utility.Reasoners.UtilityReasoner.


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