ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/commands.h
Revision: 1.7
Committed: Mon Jan 15 21:06:18 2007 UTC (17 years, 4 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.6: +22 -22 lines
Log Message:
comments

File Contents

# Content
1 /*
2 * CrossFire, A Multiplayer game for X-windows
3 *
4 * Copyright (C) 2005, 2006, 2007 Marc Lehmann & Crossfire+ Development Team
5 * Copyright (C) 1994 Mark Wedel
6 * Copyright (C) 1992 Frank Tore Johansen
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 *
22 * The author can be reached via e-mail to mark@pyramid.com
23 */
24
25 /*
26 * Crossfire commands
27 * ++Jam
28 *
29 * ''', run and fire-keys are parsed separately (cannot be overrided).
30 */
31
32
33 /* The initialised arrays were removed from this file and are now
34 * in commands.c. initialising the arrays in any header file
35 * is stupid, as it means that header file can only be included
36 * in one source file (so what is the point of putting them in a header
37 * file then?). Header files should be used like this one - to declare
38 * the structures externally - they actual structures should resided/
39 * be initialised in one of the source files.
40 */
41
42 #ifndef COMMANDS_H
43 #define COMMANDS_H
44
45 typedef int (*CommFunc)(object *op, char *params);
46
47 struct CommArray_s { /* global list's structure */
48 const char *name;
49 CommFunc func;
50 float time; /* How long it takes to execute this command */
51 };
52
53
54 extern CommArray_s Commands[],NewServerCommands [],SocketCommands[],
55 WizCommands [], CommunicationCommands[];
56
57 extern const int CommandsSize,NewServerCommandSize,
58 SocketCommandsSize, WizCommandsSize, CommunicationCommandSize;
59
60 #define EMOTE_NOD 1
61 #define EMOTE_DANCE 2
62 #define EMOTE_KISS 3
63 #define EMOTE_BOUNCE 4
64 #define EMOTE_SMILE 5
65 #define EMOTE_CACKLE 6
66 #define EMOTE_LAUGH 7
67 #define EMOTE_GIGGLE 8
68 #define EMOTE_SHAKE 9
69 #define EMOTE_PUKE 10
70 #define EMOTE_GROWL 11
71 #define EMOTE_SCREAM 12
72 #define EMOTE_SIGH 13
73 #define EMOTE_SULK 14
74 #define EMOTE_HUG 15
75 #define EMOTE_CRY 16
76 #define EMOTE_POKE 17
77 #define EMOTE_ACCUSE 18
78 #define EMOTE_GRIN 19
79 #define EMOTE_BOW 20
80 #define EMOTE_CLAP 21
81 #define EMOTE_BLUSH 22
82 #define EMOTE_BURP 23
83 #define EMOTE_CHUCKLE 24
84 #define EMOTE_COUGH 25
85 #define EMOTE_FLIP 26
86 #define EMOTE_FROWN 27
87 #define EMOTE_GASP 28
88 #define EMOTE_GLARE 29
89 #define EMOTE_GROAN 30
90 #define EMOTE_HICCUP 31
91 #define EMOTE_LICK 32
92 #define EMOTE_POUT 33
93 #define EMOTE_SHIVER 34
94 #define EMOTE_SHRUG 35
95 #define EMOTE_SLAP 36
96 #define EMOTE_SMIRK 37
97 #define EMOTE_SNAP 38
98 #define EMOTE_SNEEZE 39
99 #define EMOTE_SNICKER 40
100 #define EMOTE_SNIFF 41
101 #define EMOTE_SNORE 42
102 #define EMOTE_SPIT 43
103 #define EMOTE_STRUT 44
104 #define EMOTE_THANK 45
105 #define EMOTE_TWIDDLE 46
106 #define EMOTE_WAVE 47
107 #define EMOTE_WHISTLE 48
108 #define EMOTE_WINK 49
109 #define EMOTE_YAWN 50
110 #define EMOTE_BEG 51
111 #define EMOTE_BLEED 52
112 #define EMOTE_CRINGE 53
113 #define EMOTE_THINK 54
114 #endif