|
| bool | Execute (CBotVar **ppVars, CBotStack *&pj, CBotVar *pInstance=nullptr) |
| | Execute. More...
|
| |
| void | RestoreState (CBotVar **ppVars, CBotStack *&pj, CBotVar *pInstance=nullptr) |
| | RestoreState. More...
|
| |
| bool | CheckParam (CBotDefParam *pParam) |
| | CheckParam See if the "signature" of parameters is identical. More...
|
| |
| const std::string & | GetName () |
| | GetName. More...
|
| |
| std::string | GetParams () |
| | GetParams. More...
|
| |
| bool | IsPublic () |
| | IsPublic. More...
|
| |
| bool | IsExtern () |
| | IsExtern. More...
|
| |
| bool | GetPosition (int &start, int &stop, CBotGet modestart, CBotGet modestop) |
| | GetPosition. More...
|
| |
| bool | HasReturn () override |
| | Check if the function has a return statment that will execute. More...
|
| |
| virtual bool | Execute (CBotStack *&pj) |
| | Execute. More...
|
| |
| virtual bool | Execute (CBotStack *&pj, CBotVar *pVar) |
| | Execute. More...
|
| |
| virtual void | RestoreState (CBotStack *&pj, bool bMain) |
| | RestoreState. More...
|
| |
| | CBotInstr () |
| | Constructor. More...
|
| |
| virtual | ~CBotInstr () |
| | Destructor. More...
|
| |
| virtual bool | Execute (CBotStack *&pj) |
| | Execute. More...
|
| |
| virtual bool | Execute (CBotStack *&pj, CBotVar *pVar) |
| | Execute. More...
|
| |
| virtual void | RestoreState (CBotStack *&pj, bool bMain) |
| | RestoreState. More...
|
| |
| virtual bool | ExecuteVar (CBotVar *&pVar, CBotCStack *&pile) |
| | ExecuteVar. More...
|
| |
| virtual bool | ExecuteVar (CBotVar *&pVar, CBotStack *&pile, CBotToken *prevToken, bool bStep, bool bExtend) |
| | ExecuteVar. More...
|
| |
| virtual void | RestoreStateVar (CBotStack *&pile, bool bMain) |
| | RestoreStateVar. More...
|
| |
| virtual bool | CompCase (CBotStack *&pj, int val) |
| | CompCase This routine is defined only for the subclass CBotCase this allows to make the call on all instructions CompCase to see if it's a case to the desired value.. More...
|
| |
| void | SetToken (CBotToken *p) |
| | SetToken Set the token corresponding to the instruction. More...
|
| |
| int | GetTokenType () |
| | GetTokenType Return the type of the token assicated with the instruction. More...
|
| |
| CBotToken * | GetToken () |
| | GetToken Return associated token. More...
|
| |
| void | AddNext (CBotInstr *n) |
| | AddNext Adds the statement following the other. More...
|
| |
| CBotInstr * | GetNext () |
| | GetNext Returns next statement. More...
|
| |
| void | AddNext3 (CBotInstr *n) |
| | AddNext3. More...
|
| |
| CBotInstr * | GetNext3 () |
| | GetNext3. More...
|
| |
| void | AddNext3b (CBotInstr *n) |
| | AddNext3b. More...
|
| |
| CBotInstr * | GetNext3b () |
| | GetNext3b. More...
|
| |
|
| static CBotFunction * | Compile (CBotToken *&p, CBotCStack *pStack, CBotFunction *pFunc, bool bLocal=true) |
| | Compile Compiles a new function. More...
|
| |
| static CBotFunction * | Compile1 (CBotToken *&p, CBotCStack *pStack, CBotClass *pClass) |
| | Pre-compile a new function. More...
|
| |
| static CBotTypResult | CompileCall (const std::list< CBotFunction * > &localFunctionList, const std::string &name, CBotVar **ppVars, long &nIdent) |
| | Compile a function call. More...
|
| |
| static CBotFunction * | FindLocalOrPublic (const std::list< CBotFunction * > &localFunctionList, long &nIdent, const std::string &name, CBotVar **ppVars, CBotTypResult &TypeOrError, bool bPublic=true) |
| | Finds a local or public function. More...
|
| |
| static int | DoCall (CBotProgram *program, const std::list< CBotFunction * > &localFunctionList, long &nIdent, const std::string &name, CBotVar **ppVars, CBotStack *pStack, CBotToken *pToken) |
| | DoCall Fait un appel à une fonction. More...
|
| |
| static void | RestoreCall (const std::list< CBotFunction * > &localFunctionList, long &nIdent, const std::string &name, CBotVar **ppVars, CBotStack *pStack) |
| | RestoreCall. More...
|
| |
| static int | DoCall (const std::list< CBotFunction * > &localFunctionList, long &nIdent, const std::string &name, CBotVar *pThis, CBotVar **ppVars, CBotStack *pStack, CBotToken *pToken, CBotClass *pClass) |
| | DoCall Makes call of a method note: this is already on the stack, the pointer pThis is just to simplify. More...
|
| |
| static bool | RestoreCall (const std::list< CBotFunction * > &localFunctionList, long &nIdent, const std::string &name, CBotVar *pThis, CBotVar **ppVars, CBotStack *pStack, CBotClass *pClass) |
| | RestoreCall. More...
|
| |
| static void | AddPublic (CBotFunction *pfunc) |
| | AddPublic. More...
|
| |
| static CBotInstr * | Compile (CBotToken *&p, CBotCStack *pStack) |
| | Compile an instruction. More...
|
| |
| static CBotInstr * | CompileArray (CBotToken *&p, CBotCStack *pStack, CBotTypResult type, bool first=true) |
| | CompileArray. More...
|
| |
| static void | IncLvl (std::string &label) |
| | IncLvl Adds a level with a label. More...
|
| |
| static void | IncLvl () |
| | IncLvl Adds a level (switch statement). More...
|
| |
| static void | DecLvl () |
| | DecLvl Free a level. More...
|
| |
| static bool | ChkLvl (const std::string &label, int type) |
| | ChkLvl Control validity of break and continue. More...
|
| |
A function declaration in the code.
Examples:
void test() { ... }
void test(int a, float b) { ... }
int test(int a, float b, string c) { ... }
public bool test(int a, float b, string c, SomeClass d) { ... }
extern void test() { ... }
void classname::test() { ... }