31 #include <boost/optional.hpp> 54 const int ERM_CONT = 0;
55 const int ERM_STOP = 1;
65 void PutScript(
Ui::CEdit* edit,
const char* name);
69 void GetTitle(
char* buffer);
71 void SetStepMode(
bool bStep);
79 bool GetCursor(
int &cursor1,
int &cursor2);
81 static void ColorizeScript(
Ui::CEdit* edit,
int rangeStart = 0,
int rangeEnd = std::numeric_limits<int>::max());
82 bool IntroduceVirus();
85 void GetError(std::string& error);
87 void New(
Ui::CEdit* edit,
const char* name);
88 bool SendScript(
const char* text);
89 bool ReadScript(
const char* filename);
90 bool WriteScript(
const char* filename);
91 bool ReadStack(FILE *file);
92 bool WriteStack(FILE *file);
95 void SetFilename(
char *filename);
109 std::unique_ptr<CBot::CBotProgram> m_botProg;
117 std::unique_ptr<char[]> m_script;
119 bool m_bStepMode =
false;
120 bool m_bContinue =
false;
121 bool m_bCompile =
false;
122 char m_title[50] = {};
123 char m_mainFunction[50] = {};
124 char m_filename[50] = {};
125 char m_token[50] = {};
129 boost::optional<float> m_returnValue = boost::none;
Public interface of CBot language interpreter. CBot.h is the only file that should be included by any...
Definition: robotmain.h:108
Interface for objects that can execute tasks.
Definition: task_executor_object.h:36
Definition: old_object.h:79
Definition: robotmain.h:152
CBotError
This enum contains possible CBot error values. Values in range 5000-5999 are compile errors...
Definition: CBotEnums.h:190
Terrain loader/generator and manager.
Definition: terrain.h:145
Namespace for (new) graphics code.
Definition: app.h:49
The graphics engine.
Definition: engine.h:619
Definition: scriptfunc.h:44
Water manager/renderer.
Definition: water.h:72
Definition: interface.h:59