![]() |
Grail (C#)
1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
Public Member Functions | |
DomainTranslator (bool isDomainReusable=true) | |
abstract Plan | TranslatePlan (AIEntity entity, Planner.AbstractPlan plan, Goal goal) |
WorldState | GetWorldState (AIEntity entity, Goal goal) |
Protected Member Functions | |
abstract List< IPlannerObject > | GeneratePlannerObject (AIEntity entity, Goal goal) |
abstract List< WorldObjectType > | CreateObjectTypes (AIEntity entity, Goal goal) |
abstract void | AddActionTemplates (AIEntity entity, Domain domain, Goal goal) |
virtual void | SetWorldStateParameters (AIEntity entity, WorldState state, Goal goal) |
Properties | |
ObjectIndexBinding | binding [get] |
the constructed (IPlannerObject <-> WorldObject) index binding | |
An abstract class to implement translating from in-game world state to plan-space world state and from abstract plan to behavior sequence
|
inline |
Constructs a DomainTranslator using the specified MemoryPool.
isDomainReusable | - if set to true, the planner will assume that the planning domain remains constant, meaning that addActionTemplates and createObjectTypes will be invoked only once on DomainTranslator construction |
|
protectedpure virtual |
Inside this method, action templates for all possible actions should be added to the Domain. Use Domain.AddActionTemplate
|
protectedpure virtual |
|
protectedpure virtual |
This method should return a vector of IPlannerObject instances that correspond to in-game objects. An ObjectIndexBinding instance will be created from the returned objects.
|
inlineprotectedvirtual |
Inside this method, initial abstract WorldState parameters should be set. Use state.SetParameter
|
pure virtual |