My Project
|
NPC AI module: it is just an aggregation of AI controllers. More...
#include <AIModuleNPC.h>
Public Member Functions | |
virtual AIObjectType | GetType () |
CAIModuleNPC (CBipedObject *pBiped) | |
void | EnableFaceTracking (bool bFaceTracking) |
enable face tracking More... | |
bool | IsFaceTrackingEnabled () |
CFaceTrackingCtrler * | GetFaceController () |
void | FollowBiped (const std::string &sName) |
enable the follow controller to follow a named biped within its perceptive radius. More... | |
bool | IsFollowEnabled () |
CFollowCtrler * | GetFollowController () |
void | EnableMovieControler (bool bEnable) |
enable or disable a movie controller. More... | |
bool | IsMovieControlerEnabled () |
CMovieCtrler * | GetMovieController () |
return the movie controller. More... | |
void | EnableSequenceControler (bool bEnable) |
enable or disable a sequence controller. More... | |
bool | IsSequenceControlerEnabled () |
CSequenceCtler * | GetSequenceController () |
return the sequence controller. More... | |
virtual void | FrameMove (float fDeltaTime) |
a virtual function which is called every frame to process the controller. More... | |
![]() | |
CAIBase (CBipedObject *pBiped) | |
CBipedObject * | GetBiped () |
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 | |
![]() | |
enum | AIObjectType { BASE = 0, NPC, UNDEFINED } |
NPC AI module: it is just an aggregation of AI controllers.
void CAIModuleNPC::EnableFaceTracking | ( | bool | bFaceTracking | ) |
enable face tracking
bFaceTracking | true to enable, false to disable. |
void CAIModuleNPC::EnableMovieControler | ( | bool | bEnable | ) |
enable or disable a movie controller.
all other controllers are disabled when a movie controller is active.
bEnable | true to enable it. |
void CAIModuleNPC::EnableSequenceControler | ( | bool | bEnable | ) |
enable or disable a sequence controller.
a sequence controller has the lowest execution priority compared to other controllers.
bEnable | true to enable it. |
void CAIModuleNPC::FollowBiped | ( | const std::string & | sName | ) |
enable the follow controller to follow a named biped within its perceptive radius.
sName | if this is "", the follow controller will be disabled. |
|
virtual |
a virtual function which is called every frame to process the controller.
fDeltaTime | the time elapsed since the last frame move is called. |
pInput | It holds any information that is perceived by a Active Biped object |
Implements ParaEngine::CAIBase.
CMovieCtrler * CAIModuleNPC::GetMovieController | ( | ) |
return the movie controller.
if there is no movie controller, NULL is returned.
CSequenceCtler * CAIModuleNPC::GetSequenceController | ( | ) |
return the sequence controller.
if there is no sequence controller, NULL is returned.