Drag[en]gine Game Engine  1.0
deAISystem Class Reference

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. More...

#include <deAISystem.h>

Inheritance diagram for deAISystem:
deBaseSystem

Public Member Functions

Constructors and Destructors
 deAISystem (deEngine *engine)
 
virtual ~deAISystem ()
 
Management
deBaseAIModuleGetActiveModule () const
 
void LoadAI (deAI *ai)
 
void LoadWorld (deWorld *world)
 
void LoadNavigationSpace (deNavigationSpace *navspace)
 
void LoadNavigationBlocker (deNavigationBlocker *blocker)
 
void LoadNavigator (deNavigator *navigator)
 
void LoadLocomotion (deLocomotion &locomotion)
 Create locomotion peer using the active module and assigns it. More...
 
void LoadHeightTerrain (deHeightTerrain &heightTerrain)
 Create peer for height terrain using the active module and assigns it. More...
 
Overloadables
virtual void SetActiveModule (deLoadableModule *module)
 
virtual void ClearPermanents ()
 
virtual void PostStart ()
 
virtual void PreStop ()
 
- Public Member Functions inherited from deBaseSystem
 deBaseSystem (deEngine *engine, const char *systemName, int requiredModuleType)
 
virtual ~deBaseSystem ()
 
deEngineGetEngine () const
 
deLoadableModuleGetActiveLoadableModule () const
 
bool GetIsRunning () const
 
bool GetHasFailed () const
 
const char * GetSystemName () const
 
virtual bool CanStart ()
 
void SetHasFailed (bool hasFailed)
 
virtual void Start ()
 
virtual void Stop ()
 
void CheckAndActivateFirst (deModuleSystem::eModuleTypes type)
 
void LogInfo (const char *message)
 
void LogInfoFormat (const char *message,...)
 
void LogInfoFormatUsing (const char *message, va_list args)
 
void LogWarn (const char *message)
 
void LogWarnFormat (const char *message,...)
 
void LogWarnFormatUsing (const char *message, va_list args)
 
void LogError (const char *message)
 
void LogErrorFormat (const char *message,...)
 
void LogErrorFormatUsing (const char *message, va_list args)
 
void LogException (const deException &exception)
 

Detailed Description

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.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ deAISystem()

deAISystem::deAISystem ( deEngine engine)

Creates a new ai system linked to the given engine.

◆ ~deAISystem()

virtual deAISystem::~deAISystem ( )
virtual

Cleans up the ai system.

Member Function Documentation

◆ ClearPermanents()

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.

Referenced by GetActiveModule().

◆ GetActiveModule()

deBaseAIModule* deAISystem::GetActiveModule ( ) const
inline

◆ LoadAI()

void deAISystem::LoadAI ( deAI ai)

Creates the peer object for the given ai using the active module and assigns it.

Referenced by GetActiveModule().

◆ LoadHeightTerrain()

void deAISystem::LoadHeightTerrain ( deHeightTerrain heightTerrain)

Create peer for height terrain using the active module and assigns it.

The AI Module is not required to create a peer.

Exceptions
deeInvalidParamheightTerrain has an AI peer.
deeInvalidParamAI module failed to create the peer.

Referenced by GetActiveModule().

◆ LoadLocomotion()

void deAISystem::LoadLocomotion ( deLocomotion locomotion)

Create locomotion peer using the active module and assigns it.

The AI Module is not required to create a peer.

Exceptions
deeInvalidParamlocomotion has an AI Peer.
deeInvalidParamAI module failed to create the peer.

Referenced by GetActiveModule().

◆ LoadNavigationBlocker()

void deAISystem::LoadNavigationBlocker ( deNavigationBlocker blocker)

Creates the peer object for the given navigation blocker using the active module and assigns it.

Referenced by GetActiveModule().

◆ LoadNavigationSpace()

void deAISystem::LoadNavigationSpace ( deNavigationSpace navspace)

Creates the peer object for the given navigation space using the active module and assigns it.

Referenced by GetActiveModule().

◆ LoadNavigator()

void deAISystem::LoadNavigator ( deNavigator navigator)

Creates the peer object for the given navigator using the active module and assigns it.

Referenced by GetActiveModule().

◆ LoadWorld()

void deAISystem::LoadWorld ( deWorld world)

Creates the peer object for the given world using the active module and assigns it.

Referenced by GetActiveModule().

◆ PostStart()

virtual void deAISystem::PostStart ( )
virtual

Carry out here actions right after the system started up.

Reimplemented from deBaseSystem.

Referenced by GetActiveModule().

◆ PreStop()

virtual void deAISystem::PreStop ( )
virtual

Carry out here actions right before the system shuts down.

Reimplemented from deBaseSystem.

Referenced by GetActiveModule().

◆ SetActiveModule()

virtual void deAISystem::SetActiveModule ( deLoadableModule module)
virtual

Sets the active loadable module. Do not forget to call the super function.

Reimplemented from deBaseSystem.

Referenced by GetActiveModule().


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