A number literal - 5, 1, 2.5, 3.75, etc. or a predefined numerical constant (see CBotToken::DefineNum())
More...
#include <src/CBot/CBotInstr/CBotExprLitNum.h>
|
|
| CBotExprLitNum (T val) |
| |
| bool | Execute (CBotStack *&pj) override |
| | Execute Execute, returns the corresponding number. More...
|
| |
| void | RestoreState (CBotStack *&pj, bool bMain) override |
| | RestoreState. More...
|
| |
|
| CBotExprLitNum (int val) |
| |
|
| CBotExprLitNum (long val) |
| |
|
| CBotExprLitNum (float val) |
| |
|
| CBotExprLitNum (double val) |
| |
| | CBotInstr () |
| | Constructor. More...
|
| |
| virtual | ~CBotInstr () |
| | Destructor. More...
|
| |
| virtual bool | Execute (CBotStack *&pj) |
| | Execute. More...
|
| |
| virtual bool | Execute (CBotStack *&pj, CBotVar *pVar) |
| | Execute. More...
|
| |
| virtual void | RestoreState (CBotStack *&pj, bool bMain) |
| | RestoreState. 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...
|
| |
| 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...
|
| |
|
| virtual const std::string | GetDebugName () override |
| | Returns the name of this class. More...
|
| |
| virtual std::string | GetDebugData () override |
| | Returns additional data associated with this instruction for debugging purposes. More...
|
| |
| virtual const std::string | GetDebugName ()=0 |
| | Returns the name of this class. More...
|
| |
| virtual std::string | GetDebugData () |
| | Returns additional data associated with this instruction for debugging purposes. More...
|
| |
| virtual std::map< std::string, CBotInstr * > | GetDebugLinks () |
| |
template<typename T>
class CBot::CBotExprLitNum< T >
A number literal - 5, 1, 2.5, 3.75, etc. or a predefined numerical constant (see CBotToken::DefineNum())
Can be of type CBotTypInt, CBotTypLong, CBotTypFloat, or CBotTypDouble
◆ Execute()
Execute Execute, returns the corresponding number.
- Parameters
-
- Returns
Reimplemented from CBot::CBotInstr.
◆ RestoreState()
◆ GetDebugName()
template<typename T >
|
|
inlineoverrideprotectedvirtual |
◆ GetDebugData()
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:
- src/CBot/CBotInstr/CBotExprLitNum.h
- src/CBot/CBotInstr/CBotExprLitNum.cpp