Instruction "catch", part of "try" structure.
More...
#include <src/CBot/CBotInstr/CBotCatch.h>
|
| bool | TestCatch (CBotStack *&pj, int val) |
| | TestCatch Routine to see if the catch is to do or not. More...
|
| |
| bool | Execute (CBotStack *&pj) override |
| | Execute Execution of "catch". More...
|
| |
| void | RestoreState (CBotStack *&pj, bool bMain) override |
| | RestoreState. More...
|
| |
| void | RestoreCondState (CBotStack *&pj, bool bMain) |
| | RestoreCondState. More...
|
| |
| | CBotInstr () |
| | Constructor. More...
|
| |
| virtual | ~CBotInstr () |
| | Destructor. More...
|
| |
| virtual bool | Execute (CBotStack *&pj, CBotVar *pVar) |
| | Execute. 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...
|
| |
| virtual bool | HasReturn () |
| | Check a list of instructions for a return statement. More...
|
| |
Instruction "catch", part of "try" structure.
- See also
- CBotTry
◆ Compile()
Compile.
- Parameters
-
- Returns
◆ TestCatch()
| bool CBot::CBotCatch::TestCatch |
( |
CBotStack *& |
pj, |
|
|
int |
val |
|
) |
| |
TestCatch Routine to see if the catch is to do or not.
- Parameters
-
- Returns
◆ Execute()
| bool CBot::CBotCatch::Execute |
( |
CBotStack *& |
pj | ) |
|
|
overridevirtual |
Execute Execution of "catch".
- Parameters
-
- Returns
Reimplemented from CBot::CBotInstr.
◆ RestoreState()
| void CBot::CBotCatch::RestoreState |
( |
CBotStack *& |
pj, |
|
|
bool |
bMain |
|
) |
| |
|
overridevirtual |
◆ RestoreCondState()
| void CBot::CBotCatch::RestoreCondState |
( |
CBotStack *& |
pj, |
|
|
bool |
bMain |
|
) |
| |
RestoreCondState.
- Parameters
-
◆ GetDebugName()
| virtual const std::string CBot::CBotCatch::GetDebugName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ GetDebugLinks()
| std::map< std::string, CBotInstr * > CBot::CBotCatch::GetDebugLinks |
( |
| ) |
|
|
overrideprotectedvirtual |
The documentation for this class was generated from the following files:
- src/CBot/CBotInstr/CBotCatch.h
- src/CBot/CBotInstr/CBotCatch.cpp