23 #ifndef PARALLACTION_EXEC_H 24 #define PARALLACTION_EXEC_H 26 #include "common/util.h" 27 #include "parallaction/objects.h" 32 class Parallaction_ns;
33 class Parallaction_br;
58 #define DECLARE_UNQUALIFIED_COMMAND_OPCODE(op) void cmdOp_##op(CommandContext &) 70 #define DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(op) void instOp_##op(ProgramContext &) 73 template<
class OpcodeSet>
80 for (OpIt i = _opcodes.
begin(); i != _opcodes.
end(); ++i)
104 void cleanSuspendedList();
117 DECLARE_UNQUALIFIED_COMMAND_OPCODE(invalid);
118 DECLARE_UNQUALIFIED_COMMAND_OPCODE(
set);
119 DECLARE_UNQUALIFIED_COMMAND_OPCODE(clear);
120 DECLARE_UNQUALIFIED_COMMAND_OPCODE(start);
121 DECLARE_UNQUALIFIED_COMMAND_OPCODE(speak);
122 DECLARE_UNQUALIFIED_COMMAND_OPCODE(
get);
123 DECLARE_UNQUALIFIED_COMMAND_OPCODE(location);
124 DECLARE_UNQUALIFIED_COMMAND_OPCODE(open);
125 DECLARE_UNQUALIFIED_COMMAND_OPCODE(close);
126 DECLARE_UNQUALIFIED_COMMAND_OPCODE(on);
127 DECLARE_UNQUALIFIED_COMMAND_OPCODE(off);
128 DECLARE_UNQUALIFIED_COMMAND_OPCODE(call);
129 DECLARE_UNQUALIFIED_COMMAND_OPCODE(toggle);
130 DECLARE_UNQUALIFIED_COMMAND_OPCODE(drop);
131 DECLARE_UNQUALIFIED_COMMAND_OPCODE(quit);
132 DECLARE_UNQUALIFIED_COMMAND_OPCODE(
move);
133 DECLARE_UNQUALIFIED_COMMAND_OPCODE(stop);
142 DECLARE_UNQUALIFIED_COMMAND_OPCODE(invalid);
143 DECLARE_UNQUALIFIED_COMMAND_OPCODE(
set);
144 DECLARE_UNQUALIFIED_COMMAND_OPCODE(clear);
145 DECLARE_UNQUALIFIED_COMMAND_OPCODE(speak);
146 DECLARE_UNQUALIFIED_COMMAND_OPCODE(
get);
147 DECLARE_UNQUALIFIED_COMMAND_OPCODE(toggle);
148 DECLARE_UNQUALIFIED_COMMAND_OPCODE(quit);
149 DECLARE_UNQUALIFIED_COMMAND_OPCODE(location);
150 DECLARE_UNQUALIFIED_COMMAND_OPCODE(open);
151 DECLARE_UNQUALIFIED_COMMAND_OPCODE(close);
152 DECLARE_UNQUALIFIED_COMMAND_OPCODE(on);
153 DECLARE_UNQUALIFIED_COMMAND_OPCODE(off);
154 DECLARE_UNQUALIFIED_COMMAND_OPCODE(call);
155 DECLARE_UNQUALIFIED_COMMAND_OPCODE(drop);
156 DECLARE_UNQUALIFIED_COMMAND_OPCODE(
move);
157 DECLARE_UNQUALIFIED_COMMAND_OPCODE(start);
158 DECLARE_UNQUALIFIED_COMMAND_OPCODE(stop);
159 DECLARE_UNQUALIFIED_COMMAND_OPCODE(character);
160 DECLARE_UNQUALIFIED_COMMAND_OPCODE(followme);
161 DECLARE_UNQUALIFIED_COMMAND_OPCODE(onmouse);
162 DECLARE_UNQUALIFIED_COMMAND_OPCODE(offmouse);
163 DECLARE_UNQUALIFIED_COMMAND_OPCODE(add);
164 DECLARE_UNQUALIFIED_COMMAND_OPCODE(leave);
165 DECLARE_UNQUALIFIED_COMMAND_OPCODE(inc);
166 DECLARE_UNQUALIFIED_COMMAND_OPCODE(dec);
167 DECLARE_UNQUALIFIED_COMMAND_OPCODE(ifeq);
168 DECLARE_UNQUALIFIED_COMMAND_OPCODE(iflt);
169 DECLARE_UNQUALIFIED_COMMAND_OPCODE(ifgt);
170 DECLARE_UNQUALIFIED_COMMAND_OPCODE(let);
171 DECLARE_UNQUALIFIED_COMMAND_OPCODE(music);
172 DECLARE_UNQUALIFIED_COMMAND_OPCODE(fix);
173 DECLARE_UNQUALIFIED_COMMAND_OPCODE(unfix);
174 DECLARE_UNQUALIFIED_COMMAND_OPCODE(zeta);
175 DECLARE_UNQUALIFIED_COMMAND_OPCODE(scroll);
176 DECLARE_UNQUALIFIED_COMMAND_OPCODE(swap);
177 DECLARE_UNQUALIFIED_COMMAND_OPCODE(give);
178 DECLARE_UNQUALIFIED_COMMAND_OPCODE(text);
179 DECLARE_UNQUALIFIED_COMMAND_OPCODE(part);
180 DECLARE_UNQUALIFIED_COMMAND_OPCODE(testsfx);
181 DECLARE_UNQUALIFIED_COMMAND_OPCODE(ret);
182 DECLARE_UNQUALIFIED_COMMAND_OPCODE(onsave);
183 DECLARE_UNQUALIFIED_COMMAND_OPCODE(offsave);
195 const char **_instructionNames;
207 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(invalid);
208 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(on);
209 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(off);
210 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(loop);
211 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(endloop);
212 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(show);
213 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(call);
214 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(inc);
215 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(
set);
216 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(put);
217 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(wait);
218 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(start);
219 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(sound);
220 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(
move);
221 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(endscript);
230 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(invalid);
231 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(loop);
232 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(endloop);
233 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(show);
234 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(call);
235 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(endscript);
236 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(on);
237 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(off);
238 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(inc);
239 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(dec);
240 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(
set);
241 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(put);
242 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(wait);
243 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(start);
244 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(process);
245 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(
move);
246 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(color);
247 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(mask);
248 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(print);
249 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(text);
250 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(mul);
251 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(div);
252 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(ifeq);
253 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(iflt);
254 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(ifgt);
255 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(endif);
256 DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(stop);
void clear()
Definition: array.h:320
iterator end()
Definition: array.h:379
iterator begin()
Definition: array.h:374
T * iterator
Definition: array.h:54
Definition: parallaction.h:377
Out move(In first, In last, Out dst)
Definition: algorithm.h:109
Definition: list_intern.h:51
Definition: parallaction.h:489