ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/define.h
(Generate patch)

Comparing deliantra/server/include/define.h (file contents):
Revision 1.66 by elmex, Sat Jul 21 14:37:25 2007 UTC vs.
Revision 1.71 by root, Thu Aug 30 05:24:14 2007 UTC

186#define GEM 60 186#define GEM 60
187 187
188#define FIREWALL 62 188#define FIREWALL 62
189#define ANVIL 63 189#define ANVIL 63
190#define CHECK_INV 64 /* by b.t. thomas@nomad.astro.psu.edu */ 190#define CHECK_INV 64 /* by b.t. thomas@nomad.astro.psu.edu */
191#define MOOD_FLOOR 65 /* by b.t. thomas@nomad.astro.psu.edu 191#define MOOD_FLOOR 65 /*
192 * values of last_sp set how to change: 192 * values of last_sp set how to change:
193 * 0 = furious, all monsters become aggressive 193 * 0 = furious, all monsters become aggressive
194 * 1 = angry, all but friendly become aggressive 194 * 1 = angry, all but friendly become aggressive
195 * 2 = calm, all aggressive monsters calm down 195 * 2 = calm, all aggressive monsters calm down
196 * 3 = sleep, all monsters fall asleep 196 * 3 = sleep, all monsters fall asleep
197 * 4 = charm, monsters become pets */ 197 * 4 = charm, monsters become pets
198 * 5 = destroy monsters
199 * 6 = destroy pets / friendlies
200 */
198#define EXIT 66 201#define EXIT 66
199#define ENCOUNTER 67 202#define ENCOUNTER 67
200#define SHOP_FLOOR 68 203#define SHOP_FLOOR 68
201#define SHOP_MAT 69 204#define SHOP_MAT 69
202#define RING 70 205#define RING 70
239#define POISONING 105 242#define POISONING 105
240#define SAVEBED 106 243#define SAVEBED 106
241 244
242#define WAND 109 245#define WAND 109
243 246
247#define INSCRIBABLE 110 // inscribable things, st 0 book st 1 spell
244#define SCROLL 111 248#define SCROLL 111
245#define DIRECTOR 112 249#define DIRECTOR 112
246#define GIRDLE 113 250#define GIRDLE 113
247#define FORCE 114 251#define FORCE 114
248#define POTION_EFFECT 115 /* a force, holding the effect of a potion */ 252#define POTION_EFFECT 115 /* a force, holding the effect of a potion */
571 */ 575 */
572 576
573#define FLAG_BERSERK 99 /* monster will attack closest living 577#define FLAG_BERSERK 99 /* monster will attack closest living
574 object */ 578 object */
575#define FLAG_NEUTRAL 100 /* monster is from type neutral */ 579#define FLAG_NEUTRAL 100 /* monster is from type neutral */
576#define FLAG_NO_ATTACK 101 /* monster don't attack */ 580#define FLAG_NO_ATTACK 101 /* monster doesn't attack */
577#define FLAG_NO_DAMAGE 102 /* monster can't be damaged */ 581#define FLAG_NO_DAMAGE 102 /* monster can't be damaged */
578#define FLAG_OBJ_ORIGINAL 103 /* NEVER SET THIS. Item was loaded by 582#define FLAG_OBJ_ORIGINAL 103 /* NEVER SET THIS. Item was loaded by
579 * load_original_map() */ 583 * load_original_map() */
580#define FLAG_OBJ_SAVE_ON_OVL 104 /* this object should be saved on 584//#define FLAG_OBJ_SAVE_ON_OVL 104 /* this object should be saved on
581 * the overlay, and is not subject to 585// * the overlay, and is not subject to
582 * decay. */ 586// * decay. */
583#define FLAG_ACTIVATE_ON_PUSH 105 /* connected object is activated when 'pushed' */ 587#define FLAG_ACTIVATE_ON_PUSH 105 /* connected object is activated when 'pushed' */
584#define FLAG_ACTIVATE_ON_RELEASE 106 /* connected object is activated when 'released' */ 588#define FLAG_ACTIVATE_ON_RELEASE 106 /* connected object is activated when 'released' */
585#define FLAG_IS_WATER 107 589#define FLAG_IS_WATER 107
586#define FLAG_CONTENT_ON_GEN 108 590#define FLAG_CONTENT_ON_GEN 108
587#define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */ 591#define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */
951 955
952/* admin messages */ 956/* admin messages */
953#define MSG_TYPE_ADMIN_RULES 1 957#define MSG_TYPE_ADMIN_RULES 1
954#define MSG_TYPE_ADMIN_NEWS 2 958#define MSG_TYPE_ADMIN_NEWS 2
955 959
960/**
961 * Maximum distance a player may hear a sound from.
962 * This is only used for new client/server sound. If the sound source
963 * on the map is farther away than this, we don't sent it to the client.
964 */
965#define MAX_SOUND_DISTANCE 16
966
967#define LOG_CHANNEL "log" // the plain and ugly standard server log
968#define INFO_CHANNEL "info" // lower_left box
969#define SAY_CHANNEL "channel-say"
970#define CHAT_CHANNEL "channel-chat"
971
972/* The following are the color flags passed to new_draw_info.
973 *
974 * We also set up some control flags
975 *
976 * NDI = New Draw Info
977 */
978
979/* Color specifications - note these match the order in xutil.c */
980/* Note 2: Black, the default color, is 0. Thus, it does not need to
981 * be implicitly specified.
982 */
983#define NDI_BLACK 0
984#define NDI_WHITE 1
985#define NDI_NAVY 2
986#define NDI_RED 3
987#define NDI_ORANGE 4
988#define NDI_BLUE 5 /* Actually, it is Dodger Blue */
989#define NDI_DK_ORANGE 6 /* DarkOrange2 */
990#define NDI_GREEN 7 /* SeaGreen */
991#define NDI_LT_GREEN 8 /* DarkSeaGreen, which is actually paler */
992 /* Than seagreen - also background color */
993#define NDI_GREY 9
994#define NDI_BROWN 10 /* Sienna */
995#define NDI_GOLD 11
996#define NDI_TAN 12 /* Khaki */
997
998#define NDI_MAX_COLOR 12 /* Last value in */
999#define NDI_COLOR_MASK 0x1f /* Gives lots of room for expansion - we are */
1000 /* using an int anyways, so we have the space */
1001 /* to still do all the flags */
1002
1003#define NDI_REPLY 0x20 // is a direct reply to a user command
1004#define NDI_NOCREATE 0x40 // do not create a tba if one doesn't exist
1005#define NDI_CLIENT_MASK 0x7f // what the client is allowed to see
1006
1007#define NDI_UNIQUE 0x1000 /* Print this out immediately, don't buffer */
1008#define NDI_ALL 0x2000 /* Inform all players of this message */
1009#define NDI_DEF 0x4000 // ignore colour for channel protocol
1010
956#endif /* DEFINE_H */ 1011#endif /* DEFINE_H */
957 1012

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines