32 #include <unordered_map>
80 static bool rSin(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
81 static bool rCos(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
82 static bool rTan(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
83 static bool rSqrt(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
84 static bool rPow(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
85 static bool rRand(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
86 static bool rAbs(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
87 static bool rFloor(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
88 static bool rCeil(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
89 static bool rRound(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
90 static bool rTrunc(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
91 static bool rEndMission(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
92 static bool rPlayMusic(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
93 static bool rStopMusic(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
94 static bool rGetBuild(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
95 static bool rGetResearchEnable(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
96 static bool rGetResearchDone(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
97 static bool rSetBuild(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
98 static bool rSetResearchEnable(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
99 static bool rSetResearchDone(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
100 static bool rGetObjectById(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
101 static bool rGetObject(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
102 static bool rProgFunc(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
103 static bool rDelete(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
104 static bool rSearch(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
105 static bool rRadar(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
106 static bool rDetect(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
107 static bool rDirection(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
108 static bool rCanBuild(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
109 static bool rBuild(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
110 static bool rProduce(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
111 static bool rDistance(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
112 static bool rDistance2d(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
113 static bool rSpace(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
114 static bool rFlatGround(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
115 static bool rWait(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
116 static bool rMove(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
117 static bool rTurn(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
118 static bool rGoto(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
119 static bool rFind(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
120 static bool rGrab(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
121 static bool rDrop(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
122 static bool rSniff(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
123 static bool rReceive(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
124 static bool rSend(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
125 static bool rDeleteInfo(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
126 static bool rTestInfo(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
127 static bool rThump(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
128 static bool rRecycle(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
129 static bool rShield(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
130 static bool rFire(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
131 static bool rAim(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
132 static bool rMotor(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
133 static bool rJet(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
134 static bool rTopo(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
135 static bool rMessage(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
136 static bool rCmdline(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
137 static bool rIsMovie(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
138 static bool rErrMode(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
139 static bool rIPF(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
140 static bool rAbsTime(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
141 static bool rDeleteFile(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
142 static bool rPenDown(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
143 static bool rPenUp(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
144 static bool rPenColor(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
145 static bool rPenWidth(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
146 static bool rCameraFocus(
CBotVar* var,
CBotVar* result,
int& exception,
void* user);
179 static int m_CompteurFileOpen;
180 static std::string m_filesDir;
183 static bool Process(
CScript* script,
CBotVar* result,
int &exception);
184 static bool ShouldProcessStop(
Error err,
int errMode);
187 static std::unordered_map<int, FILE*> m_files;
188 static int m_nextFile;
Library for interpretation of CBOT language.
Some common, global definitions.
Definition: scriptfunc.h:38
Error
Type of error or info message.
Definition: global.h:32
CBotTypResult class to define the complete type of a result.
Definition: CBotDll.h:89
Definition: CBotDll.h:561