comparison scn2k/scn2k.h @ 55:f1a27ee7e03c

* started the same changes on scn2k_text.cc * handle opcodes childObj*. In fact, it was handled (in a strange way, but it worked) before the previous changeset
author thib
date Wed, 22 Apr 2009 15:01:42 +0000
parents d7cde171a1de
children c7bcc0ec2267
comparison
equal deleted inserted replaced
54:d7cde171a1de 55:f1a27ee7e03c
223 const char* descr; 223 const char* descr;
224 CmdImpl function; 224 CmdImpl function;
225 } CommandInfo; 225 } CommandInfo;
226 void RegisterCommand(int cmd1, int cmd2, int cmd3, const char* descr, CmdImpl func); 226 void RegisterCommand(int cmd1, int cmd2, int cmd3, const char* descr, CmdImpl func);
227 bool Exec(Cmd& cmd); 227 bool Exec(Cmd& cmd);
228 void PrintCmd(Cmd& cmd);
228 229
229 private: 230 private:
230 typedef std::map<SimpleCmd, CommandInfo> CommandMap; 231 typedef std::map<SimpleCmd, CommandInfo> CommandMap;
231 CommandMap command_map; 232 CommandMap command_map;
232 }; 233 };