An instruction block - { ... }.
More...
#include <src/CBot/CBotInstr/CBotBlock.h>
|
| | CBotInstr () |
| | Constructor.
|
| virtual | ~CBotInstr () |
| | Destructor.
|
| virtual bool | Execute (CBotStack *&pj) |
| | Execute.
|
| virtual bool | Execute (CBotStack *&pj, CBotVar *pVar) |
| | Execute.
|
| virtual void | RestoreState (CBotStack *&pj, bool bMain) |
| | RestoreState.
|
| virtual bool | ExecuteVar (CBotVar *&pVar, CBotCStack *&pile) |
| | ExecuteVar.
|
| virtual bool | ExecuteVar (CBotVar *&pVar, CBotStack *&pile, CBotToken *prevToken, bool bStep, bool bExtend) |
| | ExecuteVar.
|
| virtual void | RestoreStateVar (CBotStack *&pile, bool bMain) |
| | RestoreStateVar.
|
| void | SetToken (CBotToken *p) |
| | SetToken Set the token corresponding to the instruction.
|
| int | GetTokenType () |
| | GetTokenType Return the type of the token assicated with the instruction.
|
| CBotToken * | GetToken () |
| | GetToken Return associated token.
|
| void | AddNext (CBotInstr *n) |
| | AddNext Adds the statement following the other.
|
| CBotInstr * | GetNext () |
| | GetNext Returns next statement.
|
| void | AddNext3 (CBotInstr *n) |
| | AddNext3.
|
| CBotInstr * | GetNext3 () |
| | GetNext3.
|
| void | AddNext3b (CBotInstr *n) |
| | AddNext3b.
|
| CBotInstr * | GetNext3b () |
| | GetNext3b.
|
| virtual bool | HasReturn () |
| | Check a list of instructions for a return statement.
|
| virtual const std::string | GetDebugName ()=0 |
| | Returns the name of this class.
|
| virtual std::string | GetDebugData () |
| | Returns additional data associated with this instruction for debugging purposes.
|
| virtual std::map< std::string, CBotInstr * > | GetDebugLinks () |
| CBotToken | m_token |
| | Keeps the token.
|
| CBotInstr * | m_next |
| | Linked command.
|
| CBotInstr * | m_next2b |
| | Second list definition chain.
|
| CBotInstr * | m_next3 |
| | Third list for indices and fields.
|
| CBotInstr * | m_next3b |
| | Necessary for reporting tables.
|
| static int | m_LoopLvl = 0 |
| | Counter of nested loops, to determine the break and continue valid.
|
An instruction block - { ... }.
There is never an instance of this class - it gets compiled into CBotListInstr
- See also
- CBotListInstr
◆ Compile()
Compiles a statement block - { instr; instr; }.
- Parameters
-
- Returns
◆ CompileBlkOrInst()
Compiles a block of instructions or a single instruction.
- Parameters
-
- Returns
The documentation for this class was generated from the following files:
- src/CBot/CBotInstr/CBotBlock.h
- src/CBot/CBotInstr/CBotBlock.cpp