Colobot
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Friends | List of all members
CBotProgram Class Reference

Public Member Functions

 CBotProgram (CBotVar *pInstance)
 
bool Compile (const char *program, CBotStringArray &ListFonctions, void *pUser=NULL)
 
void SetIdent (long n)
 
long GetIdent ()
 
int GetError ()
 
bool GetError (int &code, int &start, int &end)
 
bool GetError (int &code, int &start, int &end, CBotProgram *&pProg)
 
bool Start (const char *name)
 
bool Run (void *pUser=NULL, int timer=-1)
 
bool GetRunPos (const char *&FunctionName, int &start, int &end)
 
CBotVarGetStackVars (const char *&FunctionName, int level)
 
void Stop ()
 
bool SaveState (FILE *pf)
 
bool RestoreState (FILE *pf)
 
bool GetPosition (const char *name, int &start, int &stop, CBotGet modestart=GetPosExtern, CBotGet modestop=GetPosBloc)
 
CBotFunctionGetFunctions ()
 

Static Public Member Functions

static void Init ()
 
static void Free ()
 
static int GetVersion ()
 
static CBotString GetErrorText (int code)
 
static void SetTimer (int n)
 
static bool AddFunction (const char *name, bool rExec(CBotVar *pVar, CBotVar *pResult, int &Exception, void *pUser), CBotTypResult rCompile(CBotVar *&pVar, void *pUser))
 
static bool DefineNum (const char *name, long val)
 

Public Attributes

bool m_bDebugDD
 
bool m_bCompileClass
 

Static Public Attributes

static CBotString m_DebugVarStr = ""
 

Friends

class CBotFunction
 

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