A number literal - 5, 1, 2.5, 3.75, etc. or a predefined numerical constant (see CBotToken::DefineNum())
More...
#include <CBotExprLitNum.h>
|
bool | Execute (CBotStack *&pj) override |
| Execute Execute, returns the corresponding number. More...
|
|
void | RestoreState (CBotStack *&pj, bool bMain) override |
| RestoreState. 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...
|
|
A number literal - 5, 1, 2.5, 3.75, etc. or a predefined numerical constant (see CBotToken::DefineNum())
Can be of type CBotTypInt or CBotTypFloat
Compile.
- Parameters
-
- Returns
bool CBot::CBotExprLitNum::Execute |
( |
CBotStack *& |
pj | ) |
|
|
overridevirtual |
Execute Execute, returns the corresponding number.
- Parameters
-
- Returns
Reimplemented from CBot::CBotInstr.
void CBot::CBotExprLitNum::RestoreState |
( |
CBotStack *& |
pj, |
|
|
bool |
bMain |
|
) |
| |
|
overridevirtual |
virtual const std::string CBot::CBotExprLitNum::GetDebugName |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
std::string CBot::CBotExprLitNum::GetDebugData |
( |
| ) |
|
|
overrideprotectedvirtual |
Returns additional data associated with this instruction for debugging purposes.
- See also
- CBotDebug
Reimplemented from CBot::CBotInstr.
The documentation for this class was generated from the following files:
- /build/colobot-4LMcse/colobot-0.1.8/src/CBot/CBotInstr/CBotExprLitNum.h
- /build/colobot-4LMcse/colobot-0.1.8/src/CBot/CBotInstr/CBotExprLitNum.cpp