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.
|
| |
| bool | Execute (CBotStack *&pj) override |
| | Execute Execution of "catch".
|
| |
| void | RestoreState (CBotStack *&pj, bool bMain) override |
| | RestoreState.
|
| |
| void | RestoreCondState (CBotStack *&pj, bool bMain) |
| | RestoreCondState.
|
| |
| | CBotInstr () |
| | Constructor.
|
| |
| virtual | ~CBotInstr () |
| | Destructor.
|
| |
| virtual bool | Execute (CBotStack *&pj, CBotVar *pVar) |
| | Execute.
|
| |
| 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 () override |
| | Returns the name of this class.
|
| |
| virtual std::map< std::string, CBotInstr * > | GetDebugLinks () override |
| |
| virtual std::string | GetDebugData () |
| | Returns additional data associated with this instruction for debugging purposes.
|
| |
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