Script Class Reference

Script Class Reference

#include <IMoFlow.h>

+ Inheritance diagram for Script:

Public Member Functions

BIPExport Script ()
 
BIPExport ~Script ()
 
BIPExport Scriptoperator= (const Script &P)
 
BIPExport int AddSnippet (Snippet *SN)
 
BIPExport int InsertSnippet (int index, Snippet *SN)
 
BIPExport int DeleteSnippet (int index)
 
BIPExport int Get_Backtrackframe ()
 
BIPExport int GetScriptItemIndex (ScriptItem *SI)
 
BIPExport int InsertScriptItem (int index, ScriptItem *SI)
 
BIPExport int GetLastTransitionIndex ()
 
TransitionGetLastTransition ()
 
int NumScriptItems ()
 
ScriptItemGetScriptItem (int ind)
 
BIPExport int IncludesSnippet (Snippet *SN)
 
BIPExport int IncludesTransition (Transition *TR)
 
void Output (MFL_IOProcessor *IOProc, bool asWChar)
 
void Input (MFL_IOProcessor *IOProc, MoFlow *MF, bool asWChar)
 
int GetStartFrame ()
 
void SetStartFrame (int f)
 
BIPExport void Set_crowd_script (crowd_script *CS)
 
Point3 GetStartPos ()
 
void SetStartPos (Point3 p)
 
float GetStartRot ()
 
void SetStartRot (float r)
 
const MCHARGetName () const
 
void SetName (const MCHAR *n)
 
int NumLayers ()
 
Layer * GetEditLayer ()
 
BIPExport Layer * GetLayer (int index)
 
BIPExport int AddLayer (Script *SCR, TimeValue t)
 
BIPExport void DeleteLayer (Layer *delLY)
 
BIPExport void SortLayer (Layer *SORTLY)
 
BIPExport int GetLayerIndex (Layer *LYR)
 
BIPExport int InsertLayer (Layer *newLY)
 
BIPExport void CloneLayer (Layer *orgLY, TimeValue t)
 
BIPExport void DeleteAllLayers ()
 

Public Attributes

MCHAR name [MAXSCRIPTNAME]
 
Point3 startpos
 
float startrot
 
int startframe
 
int nitems
 
int maxitems
 
ScriptItemitems
 
int nlayers
 
Layer * layers
 
Layer * EditLayer
 
Scriptnext
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 

Constructor & Destructor Documentation

Member Function Documentation

BIPExport Script& operator= ( const Script P)
BIPExport int AddSnippet ( Snippet SN)
BIPExport int InsertSnippet ( int  index,
Snippet SN 
)
BIPExport int DeleteSnippet ( int  index)
BIPExport int Get_Backtrackframe ( )
BIPExport int GetScriptItemIndex ( ScriptItem SI)
BIPExport int InsertScriptItem ( int  index,
ScriptItem SI 
)
BIPExport int GetLastTransitionIndex ( )
Transition* GetLastTransition ( )
int NumScriptItems ( )
inline
366 { return nitems; }
int nitems
Definition: IMoFlow.h:347
ScriptItem* GetScriptItem ( int  ind)
inline
368  { assert (ind < nitems); return &items[ind]; }
int nitems
Definition: IMoFlow.h:347
ScriptItem * items
Definition: IMoFlow.h:349
#define assert(expr)
Definition: assert1.h:71
BIPExport int IncludesSnippet ( Snippet SN)
BIPExport int IncludesTransition ( Transition TR)
void Output ( MFL_IOProcessor *  IOProc,
bool  asWChar 
)
void Input ( MFL_IOProcessor *  IOProc,
MoFlow *  MF,
bool  asWChar 
)
int GetStartFrame ( )
inline
373 { return startframe; }
int startframe
Definition: IMoFlow.h:346
void SetStartFrame ( int  f)
inline
374 { startframe = f; }
int startframe
Definition: IMoFlow.h:346
BIPExport void Set_crowd_script ( crowd_script *  CS)
Point3 GetStartPos ( )
inline
376 { return startpos; }
Point3 startpos
Definition: IMoFlow.h:344
void SetStartPos ( Point3  p)
inline
377 { startpos = p;}
Point3 startpos
Definition: IMoFlow.h:344
float GetStartRot ( )
inline
378 { return startrot; }
float startrot
Definition: IMoFlow.h:345
void SetStartRot ( float  r)
inline
379 { startrot = r;}
float startrot
Definition: IMoFlow.h:345
const MCHAR* GetName ( ) const
inline
380 { return name; }
MCHAR name[MAXSCRIPTNAME]
Definition: IMoFlow.h:343
void SetName ( const MCHAR n)
inline
381 { _tcscpy_s(name, MAXSCRIPTNAME, n); }
#define MAXSCRIPTNAME
Definition: CSConstants.h:39
MCHAR name[MAXSCRIPTNAME]
Definition: IMoFlow.h:343
int NumLayers ( )
inline
384 { return nlayers; }
int nlayers
Definition: IMoFlow.h:350
Layer* GetEditLayer ( )
inline
385 { return EditLayer; }
Layer * EditLayer
Definition: IMoFlow.h:352
BIPExport Layer* GetLayer ( int  index)
BIPExport int AddLayer ( Script SCR,
TimeValue  t 
)
BIPExport void DeleteLayer ( Layer *  delLY)
BIPExport void SortLayer ( Layer *  SORTLY)
BIPExport int GetLayerIndex ( Layer *  LYR)
BIPExport int InsertLayer ( Layer *  newLY)
BIPExport void CloneLayer ( Layer *  orgLY,
TimeValue  t 
)
BIPExport void DeleteAllLayers ( )

Member Data Documentation

Point3 startpos
float startrot
int startframe
int nitems
int maxitems
ScriptItem* items
int nlayers
Layer* layers
Layer* EditLayer
Script* next