Crossfire Server, Branch 1.12  R12190
commands.h
Go to the documentation of this file.
00001 /*
00002  * static char *rcsid_commands_h =
00003  *   "$Id: commands.h 11578 2009-02-23 22:02:27Z lalo $";
00004  */
00005 
00006 /*
00007     CrossFire, A Multiplayer game for X-windows
00008 
00009     Copyright (C) 1994 Mark Wedel
00010     Copyright (C) 1992 Frank Tore Johansen
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00025 
00026     The author can be reached via e-mail to mark@pyramid.com
00027 */
00028 
00034 #ifndef COMMANDS_H
00035 #define COMMANDS_H
00036 
00037 /*
00038  * Crossfire commands
00039  *      ++Jam
00040  *
00041  * ''', run and fire-keys are parsed separately (cannot be overrided).
00042  */
00043 
00044 
00045 /* The initialized arrays were removed from this file and are now
00046  * in commands.c.  Initializing the arrays in any header file
00047  * is stupid, as it means that header file can only be included
00048  * in one source file (so what is the point of putting them in a header
00049  * file then?).  Header files should be used like this one - to declare
00050  * the structures externally - they actual structures should resided/
00051  * be initialized in one of the source files.
00052  */
00053 
00055 typedef int (*command_function)(object *op, char *params);
00056 
00058 typedef struct {
00059     const char *name;         
00060     command_function func;    
00061     float time;               
00062 } command_array_struct;
00063 
00064 extern command_array_struct Commands[], WizCommands[], CommunicationCommands[];
00065 
00066 extern const int CommandsSize, WizCommandsSize, CommunicationCommandSize;
00067 
00072 #define EMOTE_NOD       1
00073 #define EMOTE_DANCE     2
00074 #define EMOTE_KISS      3
00075 #define EMOTE_BOUNCE    4
00076 #define EMOTE_SMILE     5
00077 #define EMOTE_CACKLE    6
00078 #define EMOTE_LAUGH     7
00079 #define EMOTE_GIGGLE    8
00080 #define EMOTE_SHAKE     9
00081 #define EMOTE_PUKE      10
00082 #define EMOTE_GROWL     11
00083 #define EMOTE_SCREAM    12
00084 #define EMOTE_SIGH      13
00085 #define EMOTE_SULK      14
00086 #define EMOTE_HUG       15
00087 #define EMOTE_CRY       16
00088 #define EMOTE_POKE      17
00089 #define EMOTE_ACCUSE    18
00090 #define EMOTE_GRIN      19
00091 #define EMOTE_BOW       20
00092 #define EMOTE_CLAP      21
00093 #define EMOTE_BLUSH     22
00094 #define EMOTE_BURP      23
00095 #define EMOTE_CHUCKLE   24
00096 #define EMOTE_COUGH     25
00097 #define EMOTE_FLIP      26
00098 #define EMOTE_FROWN     27
00099 #define EMOTE_GASP      28
00100 #define EMOTE_GLARE     29
00101 #define EMOTE_GROAN     30
00102 #define EMOTE_HICCUP    31
00103 #define EMOTE_LICK      32
00104 #define EMOTE_POUT      33
00105 #define EMOTE_SHIVER    34
00106 #define EMOTE_SHRUG     35
00107 #define EMOTE_SLAP      36
00108 #define EMOTE_SMIRK     37
00109 #define EMOTE_SNAP      38
00110 #define EMOTE_SNEEZE    39
00111 #define EMOTE_SNICKER   40
00112 #define EMOTE_SNIFF     41
00113 #define EMOTE_SNORE     42
00114 #define EMOTE_SPIT      43
00115 #define EMOTE_STRUT     44
00116 #define EMOTE_THANK     45
00117 #define EMOTE_TWIDDLE   46
00118 #define EMOTE_WAVE      47
00119 #define EMOTE_WHISTLE   48
00120 #define EMOTE_WINK      49
00121 #define EMOTE_YAWN      50
00122 #define EMOTE_BEG       51
00123 #define EMOTE_BLEED     52
00124 #define EMOTE_CRINGE    53
00125 #define EMOTE_THINK     54
00126 
00128 #endif /* COMMANDS_H */