ParaScripting::ParaMovieCtrler Class Reference
[ParaScene]

List of all members.

Detailed Description

ParaMovieCtrler object: it is used to control time based movie of character object.


Public Member Functions

bool IsValid ()
 check if the object is valid
 ParaMovieCtrler (CMovieCtrler *pObj)
string GetTime (const char *sFormat)
 get the local time of a module of the character
void SetTime (float fTime)
 set the current time of the movie
void Suspend ()
 suspend the movie
void Resume ()
 resume the movie
void Play ()
 play the movie
void Record ()
 record the movie from its current position.
void RecordNewDialog (const char *sDialog)
 add a new dialog record to the current time.
bool RecordNewAction (const char *sActionName)
 add a new action record to the current time.
bool RecordNewAction_ (const char *sActionName, float fTime)
 add a new action record to the current time.
void RecordNewEffect (int effectID, const char *sTarget)
 add a new effect record to the current time.
void GetOffsetPosition (float *x, float *y, float *z)
 get the offset position of the movie.
void SetOffsetPosition (float x, float y, float z)
 set the offset position of the movie.
void SaveMovie (const char *filename)
 save recorded movie to file.
void LoadMovie (const char *filename)
 load a recorded movie from file.

Public Attributes

CMovieCtrler * m_pMovieCtrler


Member Function Documentation

string ParaScripting::ParaMovieCtrler::GetTime ( const char *  sFormat  ) 

get the local time of a module of the character

Parameters:
sFormat,: the format of the time in the returning string "": in seconds Formated: The format argument consists of one or more codes; as in printf, the formatting codes are preceded by a percent sign (%). Characters that do not begin with % are copied unchanged. H : Hour in 24-hour format (00 ¨C 23) M : Minute as decimal number (00 ¨C 59) S : Second as decimal number (00 ¨C 59) e.g.: GetTime("movie", "time elapsed: %H:%M:%S");

void ParaScripting::ParaMovieCtrler::SetTime ( float  fTime  ) 

set the current time of the movie

Parameters:
fTime,: in seconds. 0 is the beginning of the movie

void ParaScripting::ParaMovieCtrler::Record (  ) 

record the movie from its current position.

all movies behind will be erased.

void ParaScripting::ParaMovieCtrler::RecordNewDialog ( const char *  sDialog  ) 

add a new dialog record to the current time.

All trailing dialog will be removed.

bool ParaScripting::ParaMovieCtrler::RecordNewAction ( const char *  sActionName  ) 

add a new action record to the current time.

All trailing dialog will be removed.

bool ParaScripting::ParaMovieCtrler::RecordNewAction_ ( const char *  sActionName,
float  fTime 
)

add a new action record to the current time.

All trailing dialog will be removed.

void ParaScripting::ParaMovieCtrler::RecordNewEffect ( int  effectID,
const char *  sTarget 
)

add a new effect record to the current time.

All trailing dialog will be removed.

void ParaScripting::ParaMovieCtrler::GetOffsetPosition ( float *  x,
float *  y,
float *  z 
)

get the offset position of the movie.

All movie's position key are relative to it. if there is no position key, 0,0,0 is returned e.g. x,y,z = movieCtrler:GetOffsetPosition();

void ParaScripting::ParaMovieCtrler::SetOffsetPosition ( float  x,
float  y,
float  z 
)

set the offset position of the movie.

All movie's position key are relative to it.

void ParaScripting::ParaMovieCtrler::SaveMovie ( const char *  filename  ) 

save recorded movie to file.

Parameters:
filename:file path to save the movie

void ParaScripting::ParaMovieCtrler::LoadMovie ( const char *  filename  ) 

load a recorded movie from file.

Parameters:
filename:file path to load the movie


Generated on Mon Dec 1 14:34:44 2008 for NPL Scripting Reference for ParaEngine by  doxygen 1.5.2