1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
#include "stdafx.h"
#include "loadscript.h"
class print_command:public cCmdScript{
public:
print_command():cCmdScript("print_command"){}
cCommand* GetCommandTable(){
static cCommand printtable[]=
{
{"triangle",false,_HandlePrintTriangle,NULL},
{"tri",false,_HandlePrintTriangle,NULL},
{"rectangle",false,_HandlePrintRectangle,NULL},
{"rec",false,_HandlePrintRectangle,NULL},
{"square",false,_HandlePrintSquare,NULL},
{"squ",false,_HandlePrintSquare,NULL},
{"all",false,_HandlePrintAll,NULL},
};
static cCommand commandtable[]=
{
{"print",true,NULL,printtable}
};
return commandtable;
}
static void _HandlePrintTriangle(){
return;
}
static void _HandlePrintRectangle(){
return;
}
static void _HandlePrintSquare(){
return;
}
static void _HandlePrintAll(){
return;
}
static print_command* AddCmd(){
return new print_command;
}
};
|