9 class null_cmd : public cmd_exec {
12 static const arg_def null_args[] = {
16 static cmd_exec *null_ctor(cmd *c UNUSED)
23 class move_cmd : public cmd_exec {
28 static const arg_def move_args[] = {
29 { "x", AT_DIMEN | AT_MANDATORY | AT_POSITIONAL },
30 { "y", AT_DIMEN | AT_MANDATORY | AT_POSITIONAL },
35 static cmd_exec *move_ctor(cmd *c)
37 move_cmd *m = new move_cmd;
38 m->x = c->args.at(0)->double_default(0);
39 m->y = c->args.at(1)->double_default(0);
43 /*** Command table ***/
45 const cmd_def cmd_table[] = {
46 { "move", move_args, 1, move_ctor },
47 { "null", null_args, 0, null_ctor },
48 { NULL, NULL, 0, NULL }