Grail (C#)  1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
Grail.Planners.ObjectIndexBinding Class Reference

This class represents a binding between in-game objects (Implementing IPlannerObject interface) and plan-space World Objects More...

Public Member Functions

bool TryGetIndexOfObject (IPlannerObject plannerObject, out int index)
 Attempts to get WorldObject index corresponding to the given IPlannerObject Returns true if a proper value has been assigned to outIndex, false otherwise More...
 
ObjectClass GetObjectByIndex< ObjectClass > (int index)
 Attempts to get IPlannerObject corresponding to the given WorldObject index and cast it to the specified ObjectClass More...
 

Detailed Description

This class represents a binding between in-game objects (Implementing IPlannerObject interface) and plan-space World Objects

Member Function Documentation

◆ GetObjectByIndex< ObjectClass >()

ObjectClass Grail.Planners.ObjectIndexBinding.GetObjectByIndex< ObjectClass > ( int  index)
inline

Attempts to get IPlannerObject corresponding to the given WorldObject index and cast it to the specified ObjectClass

Type Constraints
ObjectClass :class 
ObjectClass :IPlannerObject 

◆ TryGetIndexOfObject()

bool Grail.Planners.ObjectIndexBinding.TryGetIndexOfObject ( IPlannerObject  plannerObject,
out int  index 
)
inline

Attempts to get WorldObject index corresponding to the given IPlannerObject Returns true if a proper value has been assigned to outIndex, false otherwise


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