void GoSafetyCommands::Register(GtpEngine& engine, const std::string& command, GtpCallback<GoSafetyCommands>::Method method) { engine.Register(command, new GtpCallback<GoSafetyCommands>(this, method)); }
void GoBookCommands::Register(GtpEngine& e) { e.Register("book_add", &GoBookCommands::CmdAdd, this); e.Register("book_clear", &GoBookCommands::CmdClear, this); e.Register("book_delete", &GoBookCommands::CmdDelete, this); e.Register("book_info", &GoBookCommands::CmdInfo, this); e.Register("book_load", &GoBookCommands::CmdLoad, this); e.Register("book_moves", &GoBookCommands::CmdMoves, this); e.Register("book_position", &GoBookCommands::CmdPosition, this); e.Register("book_save", &GoBookCommands::CmdSave, this); e.Register("book_save_as", &GoBookCommands::CmdSaveAs, this); }
void BookBuilderCommands<PLAYER>::Register(GtpEngine& engine, const std::string& command, typename GtpCallback<BookBuilderType>::Method method) { engine.Register(command, new GtpCallback<BookBuilderType>(this, method)); }
void SgGtpCommands::Register(GtpEngine& engine) { engine.Register("cputime", &SgGtpCommands::CmdCpuTime, this); engine.Register("cputime_reset", &SgGtpCommands::CmdCpuTimeReset, this); engine.Register("echo", &SgGtpCommands::CmdEcho, this); engine.Register("echo_err", &SgGtpCommands::CmdEchoErr, this); engine.Register("get_random_seed", &SgGtpCommands::CmdGetRandomSeed, this); engine.Register("pid", &SgGtpCommands::CmdPid, this); engine.Register("set_random_seed", &SgGtpCommands::CmdSetRandomSeed, this); engine.Register("sg_debugger", &SgGtpCommands::CmdDebugger, this); engine.Register("sg_compare_float", &SgGtpCommands::CmdCompareFloat, this); engine.Register("sg_compare_int", &SgGtpCommands::CmdCompareInt, this); engine.Register("sg_exec", &SgGtpCommands::CmdExec, this); engine.Register("sg_param", &SgGtpCommands::CmdParam, this); engine.Register("quiet", &SgGtpCommands::CmdQuiet, this); }