1 | /* |
1 | /* |
2 | * static char *rcsid_commands_h = |
2 | * static char *rcsid_commands_h = |
3 | * "$Id: commands.h,v 1.1.1.1 2006/02/03 07:12:47 root Exp $"; |
3 | * "$Id: commands.h,v 1.3 2006/08/29 08:01:36 root 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 | |
61 | extern const int CommandsSize,NewServerCommandSize, |
61 | extern const int CommandsSize,NewServerCommandSize, |
62 | SocketCommandsSize, WizCommandsSize, CommunicationCommandSize; |
62 | SocketCommandsSize, WizCommandsSize, CommunicationCommandSize; |
63 | |
63 | |
64 | #define EMOTE_NOD 1 |
64 | #define EMOTE_NOD 1 |
65 | #define EMOTE_DANCE 2 |
65 | #define EMOTE_DANCE 2 |
66 | #define EMOTE_KISS 3 |
66 | #define EMOTE_KISS 3 |
67 | #define EMOTE_BOUNCE 4 |
67 | #define EMOTE_BOUNCE 4 |