22 #include "CBot/CBotInstr/CBotInstr.h" 76 virtual const std::string
GetDebugName()
override {
return "CBotCatch"; }
77 virtual std::map<std::string, CBotInstr*>
GetDebugLinks()
override;
Class for one CBot instruction.
Definition: CBotInstr.h:86
Instruction "catch", part of "try" structure.
Definition: CBotCatch.h:32
The execution stack.
Definition: CBotStack.h:44
virtual const std::string GetDebugName() override
Returns the name of this class.
Definition: CBotCatch.h:76
static CBotCatch * Compile(CBotToken *&p, CBotCStack *pStack)
Compile.
Definition: CBotCatch.cpp:49
void RestoreState(CBotStack *&pj, bool bMain) override
RestoreState.
Definition: CBotCatch.cpp:86
void RestoreCondState(CBotStack *&pj, bool bMain)
RestoreCondState.
Definition: CBotCatch.cpp:92
The "try" structure.
Definition: CBotTry.h:32
The CBotCStack class Management of the stack of compilation.
Definition: CBotCStack.h:35
CBot engine.
Definition: CBotCallMethode.cpp:28
bool TestCatch(CBotStack *&pj, int val)
TestCatch Routine to see if the catch is to do or not.
Definition: CBotCatch.cpp:98
bool Execute(CBotStack *&pj) override
Execute Execution of "catch".
Definition: CBotCatch.cpp:79
Class representing one token of a program.
Definition: CBotToken.h:80
virtual std::map< std::string, CBotInstr * > GetDebugLinks() override
Definition: CBotCatch.cpp:112