AI System. More...
#include <deAISystem.h>
Public Member Functions | |
Constructors and Destructors | |
| deAISystem (deEngine *engine) | |
| Creates a new ai system linked to the given engine. | |
| virtual | ~deAISystem () |
| Cleans up the ai system. | |
Management | |
| deBaseAIModule * | GetActiveModule () const |
| Retrieves the activated graphic module. | |
| void | LoadAI (deAI *ai) |
| Creates the peer object for the given ai using the active module and assigns it. | |
Overloadables | |
| virtual void | SetActiveModule (deLoadableModule *module) |
| Sets the active loadable module. | |
| virtual void | ClearPermanents () |
| Clears cross references and links that could lead to memory leaks. | |
| virtual void | PostStart () |
| Carry out here actions right after the system started up. | |
| virtual void | PreStop () |
| Carry out here actions right before the system shuts down. | |
AI System.
The ai system is a single type system providing ai support for the engine. An ai module is able to carry out the actions stored in an ai object.
| deAISystem::deAISystem | ( | deEngine * | engine ) |
Creates a new ai system linked to the given engine.
| virtual deAISystem::~deAISystem | ( | ) | [virtual] |
Cleans up the ai system.
| virtual void deAISystem::ClearPermanents | ( | ) | [virtual] |
Clears cross references and links that could lead to memory leaks.
Do not forget to call the super function.
Reimplemented from deBaseSystem.
| deBaseAIModule* deAISystem::GetActiveModule | ( | ) | const [inline] |
Retrieves the activated graphic module.
| void deAISystem::LoadAI | ( | deAI * | ai ) |
Creates the peer object for the given ai using the active module and assigns it.
| virtual void deAISystem::PostStart | ( | ) | [virtual] |
Carry out here actions right after the system started up.
Reimplemented from deBaseSystem.
| virtual void deAISystem::PreStop | ( | ) | [virtual] |
Carry out here actions right before the system shuts down.
Reimplemented from deBaseSystem.
| virtual void deAISystem::SetActiveModule | ( | deLoadableModule * | module ) | [virtual] |
Sets the active loadable module.
Do not forget to call the super function.
Reimplemented from deBaseSystem.
1.7.2