Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Friends | List of all members
CBotFunction Class Reference
Inheritance diagram for CBotFunction:
Inheritance graph
[legend]

Public Member Functions

bool Execute (CBotVar **ppVars, CBotStack *&pj, CBotVar *pInstance=NULL)
void RestoreState (CBotVar **ppVars, CBotStack *&pj, CBotVar *pInstance=NULL)
void AddNext (CBotFunction *p)
CBotTypResult CompileCall (const char *name, CBotVar **ppVars, long &nIdent)
CBotFunctionFindLocalOrPublic (long &nIdent, const char *name, CBotVar **ppVars, CBotTypResult &TypeOrError, bool bPublic=true)
int DoCall (long &nIdent, const char *name, CBotVar **ppVars, CBotStack *pStack, CBotToken *pToken)
void RestoreCall (long &nIdent, const char *name, CBotVar **ppVars, CBotStack *pStack)
int DoCall (long &nIdent, const char *name, CBotVar *pThis, CBotVar **ppVars, CBotStack *pStack, CBotToken *pToken, CBotClass *pClass)
void RestoreCall (long &nIdent, const char *name, CBotVar *pThis, CBotVar **ppVars, CBotStack *pStack, CBotClass *pClass)
bool CheckParam (CBotDefParam *pParam)
CBotString GetName ()
CBotString GetParams ()
bool IsPublic ()
bool IsExtern ()
CBotFunctionNext ()
bool GetPosition (int &start, int &stop, CBotGet modestart, CBotGet modestop)

Static Public Member Functions

static CBotFunctionCompile (CBotToken *&p, CBotCStack *pStack, CBotFunction *pFunc, bool bLocal=true)
static CBotFunctionCompile1 (CBotToken *&p, CBotCStack *pStack, CBotClass *pClass)
static void AddPublic (CBotFunction *pfunc)

Friends

class CBotCStack
class CBotProgram
class CBotClass

Additional Inherited Members

- Private Member Functions inherited from CBotInstr
virtual bool Execute (CBotStack *&pj)
virtual bool Execute (CBotStack *&pj, CBotVar *pVar)
virtual void RestoreState (CBotStack *&pj, bool bMain)
virtual bool ExecuteVar (CBotVar *&pVar, CBotCStack *&pile)
virtual bool ExecuteVar (CBotVar *&pVar, CBotStack *&pile, CBotToken *prevToken, bool bStep, bool bExtend)
virtual void RestoreStateVar (CBotStack *&pile, bool bMain)
virtual bool CompCase (CBotStack *&pj, int val)
void SetToken (CBotToken *p)
int GetTokenType ()
CBotTokenGetToken ()
void AddNext (CBotInstr *n)
CBotInstrGetNext ()
void AddNext3 (CBotInstr *n)
CBotInstrGetNext3 ()
void AddNext3b (CBotInstr *n)
CBotInstrGetNext3b ()
bool IsOfClass (CBotString name)
- Static Private Member Functions inherited from CBotInstr
static CBotInstrCompile (CBotToken *&p, CBotCStack *pStack)
static CBotInstrCompileArray (CBotToken *&p, CBotCStack *pStack, CBotTypResult type, bool first=true)
static void IncLvl (CBotString &label)
static void IncLvl ()
static void DecLvl ()
static bool ChkLvl (const CBotString &label, int type)

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