OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
ScriptMaster Class Reference
Inheritance diagram for ScriptMaster:
Listener Class LightClass

Public Member Functions

 CLASS_PROTOTYPE (ScriptMaster)
 
ScriptThreadCreateThread (GameScript *scr, str label, Listener *self=NULL)
 
ScriptThreadCreateThread (str filename, str label, Listener *self=NULL)
 
void ExecuteThread (GameScript *scr, str label="")
 
void ExecuteThread (str filename, str label="")
 
void ExecuteThread (GameScript *scr, str label, Event &parms)
 
void ExecuteThread (str filename, str label, Event &parms)
 
ScriptThreadCreateScriptThread (ScriptClass *scriptClass, unsigned char *m_pCodePos)
 
ScriptThreadCreateScriptThread (GameScript *scr, Listener *self, const_str label)
 
ScriptThreadCreateScriptThread (GameScript *scr, Listener *self, str label)
 
ScriptThreadCreateScriptThread (ScriptClass *scriptClass, const_str label)
 
ScriptThreadCreateScriptThread (ScriptClass *scriptClass, str label)
 
void Reset (qboolean samemap=false)
 
ScriptThreadPreviousThread (void)
 
ScriptThreadCurrentThread (void)
 
ScriptThreadCurrentScriptThread (void)
 
ScriptClassCurrentScriptClass (void)
 
GameScriptGetGameScript (const_str filename, qboolean recompile=false)
 
GameScriptGetGameScript (str filename, qboolean recompile=false)
 
GameScriptGetScript (const_str filename, qboolean recompile=false)
 
GameScriptGetScript (str filename, qboolean recompile=false)
 
void SetTime (int time)
 
void AddTiming (ScriptThread *thread, int time)
 
void RemoveTiming (ScriptThread *thread)
 
const_str AddString (const char *s)
 
const_str AddString (str &s)
 
const_str GetString (const char *s)
 
const_str GetString (str s)
 
strGetString (const_str s)
 
void ArchiveString (Archiver &arc, const_str &s)
 
void Pause ()
 
void Unpause ()
 
void AllowPause (bool allow)
 
void AddMenu (str name)
 
void RemoveMenu (str name)
 
void LoadMenus (void)
 
void Archive (Archiver &arc) override
 
GameScriptGetTempScript (const char *data)
 
void PrintStatus (void)
 
void PrintThread (int iThreadNum)
 
- Public Member Functions inherited from Listener
 CLASS_PROTOTYPE (Listener)
 
virtual ListenerGetScriptOwner (void)
 
virtual void SetScriptOwner (Listener *newOwner)
 
void CancelEventsOfType (Event *ev)
 
void CancelEventsOfType (Event &ev)
 
void CancelFlaggedEvents (int flags)
 
void CancelPendingEvents (void)
 
qboolean EventPending (Event &ev)
 
void PostEvent (Event *ev, float delay, int flags=0)
 
void PostEvent (const Event &ev, float delay, int flags=0)
 
qboolean PostponeAllEvents (float time)
 
qboolean PostponeEvent (Event &ev, float time)
 
bool ProcessEvent (const Event &ev)
 
bool ProcessEvent (Event *ev)
 
bool ProcessEvent (Event &ev)
 
ScriptVariableProcessEventReturn (Event *ev)
 
void ProcessContainerEvent (const Container< Event * > &conev)
 
qboolean ProcessPendingEvents (void)
 
bool ProcessScriptEvent (Event &ev)
 
bool ProcessScriptEvent (Event *ev)
 
int GetFlags (Event *event) const
 
qboolean ValidEvent (str name) const
 
void CommandDelay (Event *ev)
 
void Remove (Event *ev)
 
void ScriptRemove (Event *ev)
 
void EventInheritsFrom (Event *ev)
 
void EventIsInheritedBy (Event *ev)
 
void GetClassname (Event *ev)
 
- Public Member Functions inherited from Class
virtual ClassDefclassinfo (void) const
 
void warning (const char *function, const char *format,...) const
 
void error (const char *function, const char *format,...) const
 
qboolean inheritsFrom (ClassDef *c) const
 
qboolean inheritsFrom (const char *name) const
 
qboolean isInheritedBy (const char *name) const
 
qboolean isInheritedBy (ClassDef *c) const
 
const char * getClassname (void) const
 
const char * getClassID (void) const
 
const char * getSuperclass (void) const
 
- Public Member Functions inherited from LightClass
void * operator new (size_t s)
 
void operator delete (void *ptr)
 
void * operator new (size_t size, void *placement)
 
void operator delete (void *ptr, void *placement)
 
template<typename T>
void * operator new (size_t size, T &placement)
 
template<typename T>
void operator delete (void *ptr, T &placement)
 

Public Attributes

int stackCount
 
unsigned int cmdCount
 
int cmdTime
 
int maxTime
 
SafePtr< ScriptThreadm_PreviousThread
 
SafePtr< ScriptThreadm_CurrentThread
 
con_map< const_str, GameScript * > m_GameScripts
 
Container< strm_menus
 
con_timer timerList
 
con_arrayset< str, strStringDict
 
int iPaused
 

Protected Member Functions

void InitConstStrings (void)
 
void CloseGameScript ()
 
GameScriptGetGameScriptInternal (str &filename)
 
void ExecuteRunning ()
 
void Cache (Event *ev)
 
void RegisterAliasAndCache (Event *ev)
 
void RegisterAlias (Event *ev)
 
- Protected Member Functions inherited from Class
void ClearSafePointers ()
 

Static Protected Attributes

static const char * ConstStrings []
 

Friends

class ScriptThread
 

Additional Inherited Members

- Static Public Member Functions inherited from Class
static void * _newInstance (void)
 
static ClassDefclassinfostatic (void)
 
- Static Public Attributes inherited from Listener
static bool EventSystemStarted = false
 
static bool ProcessingEvents = false
 
- Static Public Attributes inherited from Class
static ClassDef ClassInfo
 
static ClassDefHook _ClassInfo_
 
static ResponseDef< ClassResponses []
 

Member Function Documentation

◆ Archive()

void ScriptMaster::Archive ( Archiver & arc)
overridevirtual

Reimplemented from Listener.


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