My Project
Public Member Functions | List of all members
ParaEngine::CAIModuleNPC Class Reference

NPC AI module: it is just an aggregation of AI controllers. More...

#include <AIModuleNPC.h>

Inheritance diagram for ParaEngine::CAIModuleNPC:
ParaEngine::CAIBase

Public Member Functions

virtual AIObjectType GetType ()
 
 CAIModuleNPC (CBipedObject *pBiped)
 
void EnableFaceTracking (bool bFaceTracking)
 enable face tracking More...
 
bool IsFaceTrackingEnabled ()
 
CFaceTrackingCtrlerGetFaceController ()
 
void FollowBiped (const std::string &sName)
 enable the follow controller to follow a named biped within its perceptive radius. More...
 
bool IsFollowEnabled ()
 
CFollowCtrlerGetFollowController ()
 
void EnableMovieControler (bool bEnable)
 enable or disable a movie controller. More...
 
bool IsMovieControlerEnabled ()
 
CMovieCtrlerGetMovieController ()
 return the movie controller. More...
 
void EnableSequenceControler (bool bEnable)
 enable or disable a sequence controller. More...
 
bool IsSequenceControlerEnabled ()
 
CSequenceCtlerGetSequenceController ()
 return the sequence controller. More...
 
virtual void FrameMove (float fDeltaTime)
 a virtual function which is called every frame to process the controller. More...
 
- Public Member Functions inherited from ParaEngine::CAIBase
 CAIBase (CBipedObject *pBiped)
 
CBipedObjectGetBiped ()
 get the biped, to which this biped controller is associated. More...
 
void SetBiped (CBipedObject *pBiped)
 Set the biped, to which this biped controller is associated. More...
 

Additional Inherited Members

- Public Types inherited from ParaEngine::CAIBase
enum  AIObjectType { BASE = 0, NPC, UNDEFINED }
 

Detailed Description

NPC AI module: it is just an aggregation of AI controllers.

Member Function Documentation

§ EnableFaceTracking()

void CAIModuleNPC::EnableFaceTracking ( bool  bFaceTracking)

enable face tracking

Parameters
bFaceTrackingtrue to enable, false to disable.

§ EnableMovieControler()

void CAIModuleNPC::EnableMovieControler ( bool  bEnable)

enable or disable a movie controller.

all other controllers are disabled when a movie controller is active.

Parameters
bEnabletrue to enable it.

§ EnableSequenceControler()

void CAIModuleNPC::EnableSequenceControler ( bool  bEnable)

enable or disable a sequence controller.

a sequence controller has the lowest execution priority compared to other controllers.

Parameters
bEnabletrue to enable it.

§ FollowBiped()

void CAIModuleNPC::FollowBiped ( const std::string &  sName)

enable the follow controller to follow a named biped within its perceptive radius.

Parameters
sNameif this is "", the follow controller will be disabled.

§ FrameMove()

void CAIModuleNPC::FrameMove ( float  fDeltaTime)
virtual

a virtual function which is called every frame to process the controller.

Parameters
fDeltaTimethe time elapsed since the last frame move is called.
pInputIt holds any information that is perceived by a Active Biped object

Implements ParaEngine::CAIBase.

§ GetMovieController()

CMovieCtrler * CAIModuleNPC::GetMovieController ( )

return the movie controller.

if there is no movie controller, NULL is returned.

§ GetSequenceController()

CSequenceCtler * CAIModuleNPC::GetSequenceController ( )

return the sequence controller.

if there is no sequence controller, NULL is returned.


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