![]() |
VR-Forces 4.1 Class Documentation
|
The main singleton class that connects Kynapse with VR-Forces. More...
Public Member Functions | |
| virtual | ~DtKynapseManager () |
| called in DtUnloadVrfPlugin() | |
| virtual bool | init (DtCgf *cgf) |
| called after instantiation to make all the connections with VRF | |
| virtual void | closeKynapseWorld () |
| called after delete AND after a new terrain is loaded. | |
| DtBhavePluginOptions * | pluginOptions () |
| Plugin options - Essentially the current configuration of B-HAVE. | |
| virtual Kaim::World * | getKynapseWorld () |
| virtual DtCgf * | getCgf () |
| virtual DtBhaveFactories * | getFactories () |
| virtual double | getPathDataHeight (const DtString &pathDataName) const |
| Returns the height used when generating the pathdata that is in. | |
Static Public Member Functions | |
| static DtKynapseManager * | instance () |
| Singleton class. | |
Protected Member Functions | |
| virtual void | registerKynapseActuators () |
| Register all actuators that Kynapse needs with VR-Forces. | |
| virtual void | registerKynapseControllers () |
| Register all controllers that Kynapse needs with VR-Forces. | |
| virtual void | processPreLoadTerrainCallback (const DtFilename &filename) |
| before a new terrain is loaded, we need to clean up a bit | |
| virtual void | processPostLoadTerrainCallback (const DtFilename &filename) |
| when a new terrain has been loaded (w/ new pathdata from metafile), we can create a new world | |
| virtual void | processSimTick (void *) |
| updates and calls Kynapse::WorldUpdate | |
| virtual void | processPostTick (void *) |
| Do anything that needs to be done at the end of a tick. | |
| virtual void | updateAllKynapsePositions () |
| Calls updatePosition to all kynapse entities. Necessarily done before the worldUpdate. | |
| bool | PrepareWorld () |
| Fills a partial WorldDefinition with graphs from the terrain, entities from the scenario editor. | |
| void | disableBHAVETasks (DtVrfObject *vrfObject) |
| Forces this particular vrfObject to stop using B-HAVE. Cannot be undone. | |
| Kaim::Bot * | getKynBotByVrfObject (DtVrfObject *vrfObject) |
| Allows access to the kynapse object from a known VR-Forces object. | |
Static Protected Member Functions | |
| static void | preLoadTerrainCallback (const DtFilename &filename, void *usr) |
| used as a static adapter to processPreLoadTerrainCallback | |
| static void | postLoadTerrainCallback (const DtFilename &filename, void *usr) |
| used as a static adapter to processPostLoadTerrainCallback | |
| static void | simTickCallback (void *) |
| calls processSimTick thanks to the DtKynapseManager pointer which is in KynMgrSimTickArguments (DtSimTickArguments cast) | |
| static void | postTickCallback (void *) |
| calls processPostTick thanks to the DtKynapseManager pointer which is in KynMgrSimTickArguments (DtSimTickArguments cast) | |
Protected Attributes | |
| DtBhavePluginOptions * | myBhavePluginOptions |
| Configuration options. | |
| DtCgf * | myCgf |
| pointer to main VRF application | |
| Kaim::World * | myWorld |
| Kynapse AI World. | |
| DtVrlLogBridge * | myLogBridge |
| Extend kynapse logging to use DtWarn etc. | |
| DtDrawingViewerBridge * | myDrawingBridge |
| Shared memory drawer. | |
| DtVrfCollisionBridge * | myCollisionBridge |
| Forces Kynapse to use VR-Forces for collision checks. | |
| DtKynapseObstacleManager * | myObstacleManager |
| Manages all area obstacles in your scene. | |
| DtVrfBodyManager * | myBodyManager |
| Manages all objects thar are not directly controlled by Kynapse. | |
| std::list< Kaim::PathData * > | myPathDataList |
| A list of all loaded pathdatas. Must match the database list. | |
| std::list< Kaim::Database * > | myPathDatabaseList |
| A list of all loaded pathdata databases. Must match the pathdata list. | |
| DtFilename | myTerrainFilename |
| std::map< DtString, double > | myPathDataHeights |
| Path data types ("lifeform", "groundplatform") mapped to the height used when generating pathdata for that type. | |
| int | myTickCount |
Static Protected Attributes | |
| static DtKynapseManager * | theKynapseManager |
| static Kaim::Engine * | theKynapseEngine |
Private Member Functions | |
| DtKynapseManager () | |
| No public constructor for singletons. | |
| bool | BHAVELicenseCheck () |
| Enables B-HAVE, if it is valid to do so. | |
The main singleton class that connects Kynapse with VR-Forces.
This class must be initialized on plugin loading or Kynapse will never load and B-HAVE won't do anything.
|
virtual |
called in DtUnloadVrfPlugin()
|
private |
No public constructor for singletons.
|
static |
Singleton class.
This grabs the one kynapse manager or creates one if none exists. Note that it still needs to be initialized after creation.
called after instantiation to make all the connections with VRF
|
virtual |
called after delete AND after a new terrain is loaded.
Deletes the kynapse world and all pathdata.
| DtBhavePluginOptions* BHAVE::DtKynapseManager::pluginOptions | ( | ) |
Plugin options - Essentially the current configuration of B-HAVE.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
References BHAVE::DtBhaveFactories::instance().
|
virtual |
Returns the height used when generating the pathdata that is in.
|
protectedvirtual |
Register all actuators that Kynapse needs with VR-Forces.
|
protectedvirtual |
Register all controllers that Kynapse needs with VR-Forces.
|
staticprotected |
used as a static adapter to processPreLoadTerrainCallback
|
protectedvirtual |
before a new terrain is loaded, we need to clean up a bit
|
staticprotected |
used as a static adapter to processPostLoadTerrainCallback
|
protectedvirtual |
when a new terrain has been loaded (w/ new pathdata from metafile), we can create a new world
|
staticprotected |
calls processSimTick thanks to the DtKynapseManager pointer which is in KynMgrSimTickArguments (DtSimTickArguments cast)
|
staticprotected |
calls processPostTick thanks to the DtKynapseManager pointer which is in KynMgrSimTickArguments (DtSimTickArguments cast)
|
protectedvirtual |
updates and calls Kynapse::WorldUpdate
|
protectedvirtual |
Do anything that needs to be done at the end of a tick.
|
protectedvirtual |
Calls updatePosition to all kynapse entities. Necessarily done before the worldUpdate.
|
protected |
Fills a partial WorldDefinition with graphs from the terrain, entities from the scenario editor.
|
protected |
Forces this particular vrfObject to stop using B-HAVE. Cannot be undone.
|
protected |
Allows access to the kynapse object from a known VR-Forces object.
|
private |
Enables B-HAVE, if it is valid to do so.
Messing with this function is certain to cause license errors.
|
staticprotected |
|
staticprotected |
|
protected |
Configuration options.
|
protected |
pointer to main VRF application
|
protected |
Kynapse AI World.
|
protected |
Extend kynapse logging to use DtWarn etc.
|
protected |
Shared memory drawer.
|
protected |
Forces Kynapse to use VR-Forces for collision checks.
|
protected |
Manages all area obstacles in your scene.
|
protected |
Manages all objects thar are not directly controlled by Kynapse.
|
protected |
A list of all loaded pathdatas. Must match the database list.
|
protected |
A list of all loaded pathdata databases. Must match the pathdata list.
|
protected |
|
protected |
Path data types ("lifeform", "groundplatform") mapped to the height used when generating pathdata for that type.
|
protected |