Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Friends | List of all members
CBotVarInt Class Reference
Inheritance diagram for CBotVarInt:
Inheritance graph
[legend]

Public Member Functions

 CBotVarInt (const CBotToken *name)
void SetValInt (int val, const char *s=NULL)
void SetValFloat (float val)
int GetValInt ()
float GetValFloat ()
CBotString GetValString ()
void Copy (CBotVar *pSrc, bool bName=true)
void Add (CBotVar *left, CBotVar *right)
void Sub (CBotVar *left, CBotVar *right)
void Mul (CBotVar *left, CBotVar *right)
int Div (CBotVar *left, CBotVar *right)
int Modulo (CBotVar *left, CBotVar *right)
void Power (CBotVar *left, CBotVar *right)
bool Lo (CBotVar *left, CBotVar *right)
bool Hi (CBotVar *left, CBotVar *right)
bool Ls (CBotVar *left, CBotVar *right)
bool Hs (CBotVar *left, CBotVar *right)
bool Eq (CBotVar *left, CBotVar *right)
bool Ne (CBotVar *left, CBotVar *right)
void XOr (CBotVar *left, CBotVar *right)
void Or (CBotVar *left, CBotVar *right)
void And (CBotVar *left, CBotVar *right)
void SL (CBotVar *left, CBotVar *right)
void SR (CBotVar *left, CBotVar *right)
void ASR (CBotVar *left, CBotVar *right)
void Neg ()
void Not ()
void Inc ()
void Dec ()
bool Save0State (FILE *pf)
bool Save1State (FILE *pf)
- Public Member Functions inherited from CBotVar
void SetUserPtr (void *pUser)
virtual void SetIdent (long UniqId)
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 (int bInit)
int GetInit ()
void SetStatic (bool bStatic)
bool IsStatic ()
void SetPrivate (int mPrivate)
bool IsPrivate (int mode=PR_PROTECT)
int GetPrivate ()
virtual void ConstructorSet ()
void SetVal (CBotVar *var)
virtual CBotVarGetItem (const char *name)
virtual CBotVarGetItemRef (int nIdent)
virtual CBotVarGetItem (int row, bool bGrow=false)
virtual CBotVarGetItemList ()
CBotVarGetStaticVar ()
bool IsElemOfClass (const char *name)
CBotVarGetNext ()
void AddNext (CBotVar *pVar)
virtual void SetValString (const char *p)
virtual void SetClass (CBotClass *pClass)
virtual CBotClassGetClass ()
virtual void SetPointer (CBotVar *p)
virtual CBotVarClassGetPointer ()
void debug ()
virtual void Maj (void *pUser=NULL, bool bContinue=true)
void SetUniqNum (long n)
long GetUniqNum ()

Friends

class CBotVar

Additional Inherited Members

- 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 ()
- Protected Attributes inherited from CBotVar
CBotTokenm_token
CBotVarm_next
CBotTypResult m_type
int 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: