22 #include "CBot/CBotInstr/CBotInstr.h" 71 virtual const std::string
GetDebugName()
override {
return "CBotCase"; }
72 virtual std::map<std::string, CBotInstr*>
GetDebugLinks()
override;
Class for one CBot instruction.
Definition: CBotInstr.h:86
The execution stack.
Definition: CBotStack.h:44
bool Execute(CBotStack *&pj) override
Execute Execution of instruction "case".
Definition: CBotCase.cpp:73
The CBotCStack class Management of the stack of compilation.
Definition: CBotCStack.h:35
Instruction "case", part of "switch" structure.
Definition: CBotCase.h:32
virtual const std::string GetDebugName() override
Returns the name of this class.
Definition: CBotCase.h:71
static CBotInstr * Compile(CBotToken *&p, CBotCStack *pStack)
Compile.
Definition: CBotCase.cpp:43
bool CompCase(CBotStack *&pj, int val) override
CompCase Routine to find the entry point of "case" corresponding to the value seen.
Definition: CBotCase.cpp:84
CBot engine.
Definition: CBotCallMethode.cpp:28
virtual std::map< std::string, CBotInstr * > GetDebugLinks() override
Definition: CBotCase.cpp:92
void RestoreState(CBotStack *&pj, bool bMain) override
RestoreState.
Definition: CBotCase.cpp:79
Class representing one token of a program.
Definition: CBotToken.h:80