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

Public Member Functions

 CScript (CObject *object, CTaskManager **secondaryTask)
void PutScript (Ui::CEdit *edit, const char *name)
bool GetScript (Ui::CEdit *edit)
bool GetCompile ()
void GetTitle (char *buffer)
void SetStepMode (bool bStep)
bool Run ()
bool Continue (const Event &event)
bool Step (const Event &event)
void Stop ()
bool IsRunning ()
bool IsContinue ()
bool GetCursor (int &cursor1, int &cursor2)
void UpdateList (Ui::CList *list)
void ColorizeScript (Ui::CEdit *edit)
bool IntroduceVirus ()
int GetError ()
void GetError (std::string &error)
void New (Ui::CEdit *edit, const char *name)
bool SendScript (const char *text)
bool ReadScript (const char *filename)
bool WriteScript (const char *filename)
bool ReadStack (FILE *file)
bool WriteStack (FILE *file)
bool Compare (CScript *other)
void SetFilename (char *filename)
char * GetFilename ()

Static Public Member Functions

static void InitFonctions ()
static CBotTypResult cBusy (CBotVar *thisclass, CBotVar *&var)
static CBotTypResult cFactory (CBotVar *thisclass, CBotVar *&var)
static CBotTypResult cClassNull (CBotVar *thisclass, CBotVar *&var)
static CBotTypResult cClassOneFloat (CBotVar *thisclass, CBotVar *&var)
static bool rBusy (CBotVar *thisclass, CBotVar *var, CBotVar *result, int &exception)
static bool rFactory (CBotVar *thisclass, CBotVar *var, CBotVar *result, int &exception)
static bool rResearch (CBotVar *thisclass, CBotVar *var, CBotVar *result, int &exception)
static bool rTakeOff (CBotVar *thisclass, CBotVar *var, CBotVar *result, int &exception)
static bool rDestroy (CBotVar *thisclass, CBotVar *var, CBotVar *result, int &exception)

Protected Member Functions

bool IsEmpty ()
bool CheckToken ()
bool Compile ()

Protected Attributes

Gfx::CEnginem_engine
Ui::CInterfacem_interface
CBotProgramm_botProg
CRobotMainm_main
Gfx::CTerrainm_terrain
Gfx::CWaterm_water
CTaskManagerm_primaryTask
CTaskManager ** m_secondaryTask
CObjectm_object
CPauseManagerm_pause
int m_ipf
int m_errMode
int m_len
char * m_script
bool m_bRun
bool m_bStepMode
bool m_bContinue
bool m_bCompile
char m_title [50]
char m_filename [50]
char m_token [50]
int m_error
int m_cursor1
int m_cursor2
Event m_event
float m_returnValue

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