ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/commands.h
Revision: 1.9
Committed: Mon May 28 21:15:56 2007 UTC (16 years, 11 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.8: +17 -17 lines
Log Message:
- update copyrights in .h files, where applicable
- rename preprocess to genkeywords

File Contents

# User Rev Content
1 root 1.1 /*
2 root 1.9 * This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game.
3 pippijn 1.7 *
4 root 1.9 * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team
5     * Copyright (©) 1994,2007 Mark Wedel
6     * Copyright (©) 1992,2007 Frank Tore Johansen
7 pippijn 1.7 *
8 root 1.9 * Crossfire TRT is free software; you can redistribute it and/or modify it
9     * under the terms of the GNU General Public License as published by the Free
10     * Software Foundation; either version 2 of the License, or (at your option)
11     * any later version.
12 pippijn 1.7 *
13 root 1.9 * This program is distributed in the hope that it will be useful, but
14     * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15     * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16     * for more details.
17 pippijn 1.7 *
18 root 1.9 * You should have received a copy of the GNU General Public License along
19     * with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51
20     * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21     *
22     * The authors can be reached via e-mail to <crossfire@schmorp.de>
23 pippijn 1.7 */
24 root 1.1
25     /*
26     * Crossfire commands
27     * ++Jam
28     *
29     * ''', run and fire-keys are parsed separately (cannot be overrided).
30     */
31    
32    
33 pippijn 1.5 /* The initialised arrays were removed from this file and are now
34     * in commands.c. initialising the arrays in any header file
35 root 1.1 * 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 pippijn 1.5 * be initialised in one of the source files.
40 root 1.1 */
41    
42     #ifndef COMMANDS_H
43     #define COMMANDS_H
44    
45     typedef int (*CommFunc)(object *op, char *params);
46    
47 elmex 1.2 struct CommArray_s { /* global list's structure */
48 root 1.1 const char *name;
49     CommFunc func;
50     float time; /* How long it takes to execute this command */
51 elmex 1.2 };
52 root 1.1
53    
54 pippijn 1.8 extern CommArray_s Commands[], SocketCommands[],
55     WizCommands[], CommunicationCommands[];
56 root 1.1
57 pippijn 1.8 extern const int CommandsSize, SocketCommandsSize,
58     WizCommandsSize, CommunicationCommandSize;
59 root 1.1
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