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 const std::string& GetTitle();
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(
const std::string &filename);
96 const std::string& GetFilename();
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 std::string m_title =
"";
123 std::string m_mainFunction =
"";
124 std::string m_filename =
"";
125 std::string m_token =
"";
126 int m_tokenUsed = 0, m_tokenAllowed = 0;
130 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:159
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:147
Namespace for (new) graphics code.
Definition: app.h:49
The graphics engine.
Definition: engine.h:585
Definition: scriptfunc.h:44
Water manager/renderer.
Definition: water.h:72
Definition: interface.h:59