Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
CBotClass Class Reference

Public Member Functions

 CBotClass (const char *name, CBotClass *pParent, bool bIntrinsic=false)
bool AddFunction (const char *name, bool rExec(CBotVar *pThis, CBotVar *pVar, CBotVar *pResult, int &Exception), CBotTypResult rCompile(CBotVar *pThis, CBotVar *&pVar))
bool AddUpdateFunc (void rMaj(CBotVar *pThis, void *pUser))
bool AddItem (CBotString name, CBotTypResult type, int mPrivate=PR_PUBLIC)
bool AddItem (CBotVar *pVar)
void AddNext (CBotClass *pClass)
CBotString GetName ()
CBotClassGetParent ()
bool IsChildOf (CBotClass *pClass)
CBotVarGetVar ()
CBotVarGetItem (const char *name)
CBotVarGetItemRef (int nIdent)
CBotTypResult CompileMethode (const char *name, CBotVar *pThis, CBotVar **ppParams, CBotCStack *pStack, long &nIdent)
bool ExecuteMethode (long &nIdent, const char *name, CBotVar *pThis, CBotVar **ppParams, CBotVar *&pResult, CBotStack *&pStack, CBotToken *pToken)
void RestoreMethode (long &nIdent, const char *name, CBotVar *pThis, CBotVar **ppParams, CBotStack *&pStack)
bool CompileDefItem (CBotToken *&p, CBotCStack *pStack, bool bSecond)
bool IsIntrinsic ()
void Purge ()
bool Lock (CBotProgram *p)
void Unlock ()
bool CheckCall (CBotToken *&pToken, CBotDefParam *pParam)

Static Public Member Functions

static CBotClassFind (CBotToken *&pToken)
static CBotClassFind (const char *name)
static CBotClassCompile (CBotToken *&p, CBotCStack *pStack)
static CBotClassCompile1 (CBotToken *&p, CBotCStack *pStack)
static void Free ()
static bool SaveStaticState (FILE *pf)
static bool RestoreStaticState (FILE *pf)
static void FreeLock (CBotProgram *p)

Public Attributes

bool m_IsDef

Friends

class CBotVarClass

Member Function Documentation

bool CBotClass::AddItem ( CBotString  name,
CBotTypResult  type,
int  mPrivate = PR_PUBLIC 
)

pVar->SetUniqNum(CBotVar::NextUniqNum());


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