UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
scriplib.h File Reference

Go to the source code of this file.

Functions

void LoadScriptFile (const char *filename)
 
void ParseFromMemory (char *buffer, int size)
 Parses e.g. the entity string that is already stored in memory. More...
 
const char * GetToken ()
 Parses the next token from the current script on the stack and store the result in parsedToken. More...
 
bool TokenAvailable (void)
 Returns true if there is another token on the line. More...
 
int GetScriptLine (void)
 

Variables

char parsedToken [MAX_TOKEN_CHARS]
 

Function Documentation

int GetScriptLine ( void  )
const char* GetToken ( )

Parses the next token from the current script on the stack and store the result in parsedToken.

Definition at line 75 of file scriplib.cpp.

References script_t::buffer, Com_Parse(), script_t::filename, Mem_Free, parsedToken, Q_streq, Q_strnull(), and script_t::script_p.

Referenced by ParseBrush(), ParseEntity(), ParseEpair(), and ParseMapEntity().

void LoadScriptFile ( const char *  filename)
void ParseFromMemory ( char *  buffer,
int  size 
)

Parses e.g. the entity string that is already stored in memory.

Definition at line 62 of file scriplib.cpp.

References script_t::buffer, script_t::end_p, script_t::filename, Q_strncpyz(), and script_t::script_p.

Referenced by ParseEntities().

bool TokenAvailable ( void  )

Returns true if there is another token on the line.

Definition at line 92 of file scriplib.cpp.

References script_t::end_p, and script_t::script_p.

Referenced by ParseBrush().

Variable Documentation

char parsedToken[MAX_TOKEN_CHARS]