1 | /* |
1 | /* |
2 | * static char *rcsid_commands_h = |
2 | * static char *rcsid_commands_h = |
3 | * "$Id: commands.h,v 1.1 2006/02/03 07:12:47 root Exp $"; |
3 | * "$Id: commands.h,v 1.2 2006/08/13 17:16:02 elmex Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
46 | #ifndef COMMANDS_H |
46 | #ifndef COMMANDS_H |
47 | #define COMMANDS_H |
47 | #define COMMANDS_H |
48 | |
48 | |
49 | typedef int (*CommFunc)(object *op, char *params); |
49 | typedef int (*CommFunc)(object *op, char *params); |
50 | |
50 | |
51 | typedef struct { /* global list's structure */ |
51 | struct CommArray_s { /* global list's structure */ |
52 | const char *name; |
52 | const char *name; |
53 | CommFunc func; |
53 | CommFunc func; |
54 | float time; /* How long it takes to execute this command */ |
54 | float time; /* How long it takes to execute this command */ |
55 | } CommArray_s; |
55 | }; |
56 | |
56 | |
57 | |
57 | |
58 | extern CommArray_s Commands[],NewServerCommands [],SocketCommands[], |
58 | extern CommArray_s Commands[],NewServerCommands [],SocketCommands[], |
59 | WizCommands [], CommunicationCommands[]; |
59 | WizCommands [], CommunicationCommands[]; |
60 | |
60 | |