![]() |
Grail (C++)
1.1.1
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
#include <ObjectIndexBinding.hh>
Public Member Functions | |
| bool | TryGetIndexOfObject (const IPlannerObject *object, unsigned int &outIndex) const |
| template<class ObjectClass > | |
| ObjectClass * | GetObjectByIndex (unsigned int index) const |
Friends | |
| class | DomainTranslator |
This class represets a binding between in-game objects (Implementing IPlannerObject interface) and plan-space World Objects
|
inline |
Attempts to get IPlannerObject corresponding to the given WorldObject index and cast it to the specified ObjectClass. WARNING! This method uses static_cast!
| bool grail::planning::ObjectIndexBinding::TryGetIndexOfObject | ( | const IPlannerObject * | object, |
| unsigned int & | outIndex | ||
| ) | const |
Attempts to get WorldObject index corresponding to the given IPlannerObject.