Colobot
Public Member Functions | Static Public Member Functions | Friends | List of all members
CBotVarClass Class Reference
Inheritance diagram for CBotVarClass:
Inheritance graph
[legend]

Public Member Functions

 CBotVarClass (const CBotToken *name, const CBotTypResult &type)
 
void Copy (CBotVar *pSrc, bool bName=true) override
 
void SetClass (CBotClass *pClass) override
 
CBotClassGetClass () override
 
CBotVarGetItem (const char *name) override
 
CBotVarGetItemRef (int nIdent) override
 
CBotVarGetItem (int n, bool bExtend) override
 
CBotVarGetItemList () override
 
CBotString GetValString () override
 
bool Save1State (FILE *pf) override
 
void Maj (void *pUser, bool bContinue) override
 
void IncrementUse ()
 
void DecrementUse ()
 
CBotVarClassGetPointer () override
 
void SetItemList (CBotVar *pVar)
 
void SetIdent (long n) override
 
bool Eq (CBotVar *left, CBotVar *right) override
 
bool Ne (CBotVar *left, CBotVar *right) override
 
void ConstructorSet () override
 
- Public Member Functions inherited from CBotVar
void SetUserPtr (void *pUser)
 
void * GetUserPtr ()
 
CBotString GetName ()
 
void SetName (const char *name)
 
int GetType (int mode=0)
 
CBotTypResult GetTypResult (int mode=0)
 
CBotTokenGetToken ()
 
void SetType (CBotTypResult &type)
 
void SetInit (InitType initType)
 
InitType GetInit () const
 
bool IsUndefined () const
 
bool IsDefined () const
 
bool IsNAN () const
 
void SetStatic (bool bStatic)
 
bool IsStatic ()
 
void SetPrivate (int mPrivate)
 
bool IsPrivate (int mode=PR_PROTECT)
 
int GetPrivate ()
 
void SetVal (CBotVar *var)
 
CBotVarGetStaticVar ()
 
bool IsElemOfClass (const char *name)
 
CBotVarGetNext ()
 
void AddNext (CBotVar *pVar)
 
virtual void SetValInt (int val, const char *name=nullptr)
 
virtual void SetValFloat (float val)
 
virtual void SetValString (const char *p)
 
virtual int GetValInt ()
 
virtual float GetValFloat ()
 
virtual void SetPointer (CBotVar *p)
 
virtual void Add (CBotVar *left, CBotVar *right)
 
virtual void Sub (CBotVar *left, CBotVar *right)
 
virtual void Mul (CBotVar *left, CBotVar *right)
 
virtual int Div (CBotVar *left, CBotVar *right)
 
virtual int Modulo (CBotVar *left, CBotVar *right)
 
virtual void Power (CBotVar *left, CBotVar *right)
 
virtual bool Lo (CBotVar *left, CBotVar *right)
 
virtual bool Hi (CBotVar *left, CBotVar *right)
 
virtual bool Ls (CBotVar *left, CBotVar *right)
 
virtual bool Hs (CBotVar *left, CBotVar *right)
 
virtual void And (CBotVar *left, CBotVar *right)
 
virtual void Or (CBotVar *left, CBotVar *right)
 
virtual void XOr (CBotVar *left, CBotVar *right)
 
virtual void ASR (CBotVar *left, CBotVar *right)
 
virtual void SR (CBotVar *left, CBotVar *right)
 
virtual void SL (CBotVar *left, CBotVar *right)
 
virtual void Neg ()
 
virtual void Not ()
 
virtual void Inc ()
 
virtual void Dec ()
 
virtual bool Save0State (FILE *pf)
 
void debug ()
 
void SetUniqNum (long n)
 
long GetUniqNum ()
 

Static Public Member Functions

static CBotVarClassFind (long id)
 
- Static Public Member Functions inherited from CBotVar
static CBotVarCreate (const char *name, CBotTypResult type)
 
static CBotVarCreate (const char *name, CBotClass *pClass)
 
static CBotVarCreate (const CBotToken *name, int type)
 
static CBotVarCreate (const CBotToken *name, CBotTypResult type)
 
static CBotVarCreate (const char *name, int type, CBotClass *pClass)
 
static CBotVarCreate (CBotVar *pVar)
 
static bool RestoreState (FILE *pf, CBotVar *&pVar)
 
static long NextUniqNum ()
 

Friends

class CBotVar
 
class CBotVarPointer
 

Additional Inherited Members

- Public Types inherited from CBotVar
enum  InitType : int { UNDEF = 0, DEF = 1, IS_POINTER = 2, IS_NAN = 999 }
 
- Protected Attributes inherited from CBotVar
CBotTokenm_token
 
CBotVarm_next
 
CBotTypResult m_type
 
InitType m_binit
 
CBotVarClassm_pMyThis
 
void * m_pUserPtr
 
bool m_bStatic
 
int m_mPrivate
 
CBotInstrm_InitExpr
 
CBotInstrm_LimExpr
 
long m_ident
 
- Static Protected Attributes inherited from CBotVar
static long m_identcpt = 0
 

The documentation for this class was generated from the following files: