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

Public Member Functions

 CLASS_PROTOTYPE (Script)
 
 Script (const char *filename)
 
void Close (void)
 
const char * Filename (void)
 
int GetLineNumber (void)
 
void Reset (void)
 
void MarkPosition (scriptmarker_t *mark)
 
void RestorePosition (const scriptmarker_t *mark)
 
qboolean SkipToEOL (void)
 
void SkipWhiteSpace (qboolean crossline)
 
void SkipNonToken (qboolean crossline)
 
qboolean TokenAvailable (qboolean crossline)
 
qboolean CommentAvailable (qboolean crossline)
 
void UnGetToken (void)
 
qboolean AtString (qboolean crossline)
 
qboolean AtOpenParen (qboolean crossline)
 
qboolean AtCloseParen (qboolean crossline)
 
qboolean AtComma (qboolean crossline)
 
qboolean AtDot (qboolean crossline)
 
qboolean AtAssignment (qboolean crossline)
 
const char * GetToken (qboolean crossline)
 
const char * GetLine (qboolean crossline)
 
const char * GetRaw (void)
 
const char * GetString (qboolean crossline)
 
qboolean GetSpecific (const char *string)
 
qboolean GetBoolean (qboolean crossline)
 
int GetInteger (qboolean crossline)
 
double GetDouble (qboolean crossline)
 
float GetFloat (qboolean crossline)
 
Vector GetVector (qboolean crossline)
 
int LinesInFile (void)
 
void Parse (const char *data, size_t length, const char *name)
 
void LoadFile (const char *name)
 
void LoadFile (const char *name, int length, const char *buf)
 
const char * Token (void)
 
void AddMacroDefinition (qboolean crossline)
 
const char * GetMacroString (const char *theMacroName)
 
char * EvaluateMacroString (const char *theMacroString)
 
float EvaluateMacroMath (float value, float newval, char oper)
 
const char * GetExprToken (const char *ptr, char *token)
 
const char * GrabNextToken (qboolean crossline)
 
qboolean isMacro (void)
 
qboolean EndOfFile ()
 
qboolean isValid (void)
 
Container< macro * > * GetMacroList ()
 
void AddMacro (const char *name, const char *value)
 
- 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
 
virtual void Archive (Archiver &arc)
 
- 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

const char * buffer
 
size_t length
 

Protected Member Functions

qboolean AtComment (void)
 
void CheckOverflow (void)
 
- Protected Member Functions inherited from Class
void ClearSafePointers ()
 

Protected Attributes

qboolean tokenready
 
str filename
 
const char * script_p
 
const char * end_p
 
Container< macro * > macrolist
 
int line
 
char token [SCRIPT_MAXTOKEN]
 
qboolean releaseBuffer
 
qboolean hasError
 

Additional Inherited Members

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

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