My Project
Public Member Functions | Public Attributes | List of all members
ParaScripting::ParaSeqCtrler Class Reference

ParaSeqCtrler object: A sequence controller is a biped controller which moves the biped according to some predefined sequence. More...

#include <ParaScriptingCharacter.h>

Public Member Functions

bool IsValid ()
 check if the object is valid
 
 ParaSeqCtrler (CSequenceCtler *pObj)
 
bool Save (bool bOverride)
 
bool LoadByID (int nSequenceID)
 
bool LoadFromFile (const char *fileName)
 
int Create (const char *name, const char *description, const char *pData, bool bInMemory)
 
string ToString ()
 
int GetKeyPos ()
 Get the current absolute playing cursor position.
 
void SetKeyPos (int nPos)
 set the current absolute playing cursor position
 
int GetTotalKeys ()
 get total key count
 
int AdvanceKey (int nOffset)
 offset the key index according to the current play mode. More...
 
void BeginAddKeys ()
 call the command functions(RunTo, MoveTo, etc) only between the matching pair of BeginAddKeys() and EndAddKeys()
 
void EndAddKeys ()
 call the command functions(RunTo, MoveTo, etc) only between the matching pair of BeginAddKeys() and EndAddKeys()
 
int GetSequenceID ()
 
bool DeleteKeysRange (int nFrom, int nTo)
 delete keys range More...
 
bool GetPlayDirection ()
 get the play direction. More...
 
void SetPlayDirection (bool bForward)
 set the play direction. More...
 
float GetInterval ()
 the minimum time between two successive calls. More...
 
void SetInterval (float fInterval)
 the minimum time between two successive calls. More...
 
void GetStartPos (float &x, float &y, float &z)
 get the starting position. More...
 
void SetStartPos (float x, float y, float z)
 set the starting position. More...
 
float GetStartFacing ()
 get the start facing. More...
 
void SetStartFacing (float facing)
 Set the start facing. More...
 
int GetPlayMode ()
 get the current play mode
 
void SetPlayMode (int mode)
 set the current play mode
 
float GetMovingTimeout ()
 get the number of seconds after which all move commands will be treated as finished. More...
 
void SetMovingTimeout (float fTimeout)
 set the number of seconds after which all move commands will be treated as finished. More...
 
void Suspend ()
 suspend
 
void Resume ()
 resume
 
void RunTo (float x, float y, float z)
 
void WalkTo (float x, float y, float z)
 
void MoveTo (float x, float y, float z)
 
void MoveAndTurn (float x, float y, float z, float facing)
 
void PlayAnim (const char *sAnim)
 
void PlayAnim1 (int nAnimID)
 
void Wait (float fSeconds)
 
void Exec (const char *sCmd)
 
void Pause ()
 
void Turn (float fAngleAbsolute)
 
void MoveForward (float fDistance)
 
void MoveBack (float fDistance)
 
void MoveLeft (float fDistance)
 
void MoveRight (float fDistance)
 
void Jump ()
 
void Goto (int nOffset)
 
void Goto1 (const char *sLable)
 
void Lable (const char *sLable)
 

Public Attributes

CSequenceCtlerm_pSequenceCtrler
 

Detailed Description

ParaSeqCtrler object: A sequence controller is a biped controller which moves the biped according to some predefined sequence.

it is used to control sequence based commands of character object.

Member Function Documentation

§ AdvanceKey()

int ParaScripting::ParaSeqCtrler::AdvanceKey ( int  nOffset)

offset the key index according to the current play mode.

i.e. it will automatically wrap to the beginning if looping.

Parameters
nOffsetnumber of keys to advance.
Returns
: the number of keys that have been successfully offseted. Usually if the returned value is not equal to the input value, it means that the sequence should be paused.

§ DeleteKeysRange()

bool ParaScripting::ParaSeqCtrler::DeleteKeysRange ( int  nFrom,
int  nTo 
)

delete keys range

Parameters
nFrom0 based index.
nTo0 based index, if -1, it means the last one.

§ GetInterval()

float ParaScripting::ParaSeqCtrler::GetInterval ( )

the minimum time between two successive calls.

§ GetMovingTimeout()

float ParaScripting::ParaSeqCtrler::GetMovingTimeout ( )

get the number of seconds after which all move commands will be treated as finished.

default value is 30 seconds.

§ GetPlayDirection()

bool ParaScripting::ParaSeqCtrler::GetPlayDirection ( )

get the play direction.

§ GetStartFacing()

float ParaScripting::ParaSeqCtrler::GetStartFacing ( )

get the start facing.

usually default to 0.

§ GetStartPos()

void ParaScripting::ParaSeqCtrler::GetStartPos ( float &  x,
float &  y,
float &  z 
)

get the starting position.

§ SetInterval()

void ParaScripting::ParaSeqCtrler::SetInterval ( float  fInterval)

the minimum time between two successive calls.

§ SetMovingTimeout()

void ParaScripting::ParaSeqCtrler::SetMovingTimeout ( float  fTimeout)

set the number of seconds after which all move commands will be treated as finished.

default value is 30 seconds.

§ SetPlayDirection()

void ParaScripting::ParaSeqCtrler::SetPlayDirection ( bool  bForward)

set the play direction.

§ SetStartFacing()

void ParaScripting::ParaSeqCtrler::SetStartFacing ( float  facing)

Set the start facing.

usually default to 0.

§ SetStartPos()

void ParaScripting::ParaSeqCtrler::SetStartPos ( float  x,
float  y,
float  z 
)

set the starting position.


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