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.142 by root, Wed Nov 16 23:42:00 2016 UTC vs.
Revision 1.145 by root, Sat Nov 17 23:40:00 2018 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team
4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 5 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2003-2005 Mark Wedel & Crossfire Development Team 6 * Copyright (©) 2003-2005 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 7 * Copyright (©) 1992 Frank Tore Johansen
7 * 8 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 9 * Deliantra is free software: you can redistribute it and/or modify it under
161#define GEM 60 162#define GEM 60
162#define MENU 61 /* Mark Wedel (mark@pyramid.com) Shop inventories */ 163#define MENU 61 /* Mark Wedel (mark@pyramid.com) Shop inventories */
163#define FIREWALL 62 164#define FIREWALL 62
164#define ANVIL 63 165#define ANVIL 63
165#define CHECK_INV 64 /* by b.t. thomas@nomad.astro.psu.edu */ 166#define CHECK_INV 64 /* by b.t. thomas@nomad.astro.psu.edu */
166#define MOOD_FLOOR 65 /* 167#define MOOD_FLOOR 65 /*
167 * values of last_sp set how to change: 168 * values of last_sp set how to change:
168 * 0 = furious, all monsters become aggressive 169 * 0 = furious, all monsters become aggressive
169 * 1 = angry, all but friendly become aggressive 170 * 1 = angry, all but friendly become aggressive
170 * 2 = calm, all aggressive monsters calm down 171 * 2 = calm, all aggressive monsters calm down
171 * 3 = sleep, all monsters fall asleep 172 * 3 = sleep, all monsters fall asleep
246 247
247typedef std::bitset<NUM_TYPES> typeset; 248typedef std::bitset<NUM_TYPES> typeset;
248 249
249/* These are the items that currently can change digestion, regeneration, 250/* These are the items that currently can change digestion, regeneration,
250 * spell point recovery and mana point recovery. Seems sort of an arbitary 251 * spell point recovery and mana point recovery. Seems sort of an arbitary
251 * list, but other items store other info into stats array. 252 * list, but other items store other info into stats array.
252 * As a special exception, bows use stats.sp for their own purposes. 253 * As a special exception, bows use stats.sp for their own purposes.
253 */ 254 */
254static const struct digest_types : typeset 255static const struct digest_types : typeset
255{ 256{
256 digest_types () 257 digest_types ()
355#define PU_FLESH 0x04000000 356#define PU_FLESH 0x04000000
356 357
357 358
358/* Instead of using arbitrary constants for indexing the 359/* Instead of using arbitrary constants for indexing the
359 * freearr, add these values. <= SIZEOFFREE1 will get you 360 * freearr, add these values. <= SIZEOFFREE1 will get you
360 * within 1 space. <= SIZEOFFREE2 wll get you withing 361 * within 1 space. <= SIZEOFFREE2 wll get you withing
361 * 2 spaces, and the entire array (< SIZEOFFREE) is 362 * 2 spaces, and the entire array (< SIZEOFFREE) is
362 * three spaces 363 * three spaces
363 */ 364 */
364#define SIZEOFFREE0 0 365#define SIZEOFFREE0 0
365#define SIZEOFFREE1 8 366#define SIZEOFFREE1 8
366#define SIZEOFFREE2 24 367#define SIZEOFFREE2 24
367#define SIZEOFFREE3 48 368#define SIZEOFFREE3 48
368#define SIZEOFFREE 49 369#define SIZEOFFREE 49
369 370
370#define NROF_SOUNDS (23 + NROFREALSPELLS) /* Number of sounds */ 371#define NROF_SOUNDS (23 + NROFREALSPELLS) /* Number of sounds */
371 372
372/* 373/*
373 * If any FLAG's are added or changed, make sure the flag_names structure in 374 * If any FLAG's are added or changed, make sure the flag_names structure in
374 * common/loader.C is updated. 375 * common/loader.C is updated.
375 */ 376 */
376 377
377/* the flags */ 378/* the flags */
490 * load_original_map() */ 491 * load_original_map() */
491#define FLAG_RANDOM_SPEED 104 /* speed_left should be randomised on instantiate */ 492#define FLAG_RANDOM_SPEED 104 /* speed_left should be randomised on instantiate */
492#define FLAG_ACTIVATE_ON_PUSH 105 /* connected object is activated when 'pushed' */ 493#define FLAG_ACTIVATE_ON_PUSH 105 /* connected object is activated when 'pushed' */
493#define FLAG_ACTIVATE_ON_RELEASE 106 /* connected object is activated when 'released' */ 494#define FLAG_ACTIVATE_ON_RELEASE 106 /* connected object is activated when 'released' */
494#define FLAG_IS_WATER 107 /* apparently not used inside the server for anything */ 495#define FLAG_IS_WATER 107 /* apparently not used inside the server for anything */
495#define FLAG_CONTENT_ON_GEN 108 496#define FLAG_CONTENT_ON_GEN 108
496#define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */ 497#define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */
497#define FLAG_IS_BUILDABLE 110 /* Can build on item */ 498#define FLAG_IS_BUILDABLE 110 /* Can build on item */
498#define FLAG_DESTROY_ON_DEATH 111 /* Object will be destroyed when env dies */ 499#define FLAG_DESTROY_ON_DEATH 111 /* Object will be destroyed when env dies */
499#define FLAG_NO_MAP_SAVE 112 // item doesn't get saved with map 500#define FLAG_NO_MAP_SAVE 112 // item doesn't get saved with map
500#define FLAG_IS_QUAD 113 /* This is a destructible and buildable item 501#define FLAG_IS_QUAD 113 /* This is a destructible and buildable item
573#define F_IDENTIFIED 8 /* flag to calculate value of identified item */ 574#define F_IDENTIFIED 8 /* flag to calculate value of identified item */
574#define F_NOT_CURSED 16 /* flag to calculate value of uncursed item */ 575#define F_NOT_CURSED 16 /* flag to calculate value of uncursed item */
575#define F_APPROX 32 /* flag to give a guess of item value */ 576#define F_APPROX 32 /* flag to give a guess of item value */
576#define F_SHOP 64 /* consider the effect that the shop that the player is in has */ 577#define F_SHOP 64 /* consider the effect that the shop that the player is in has */
577 578
578#define DIRX(xyz) freearr_x[(xyz)->direction] 579#define DIRX(xyz) freearr_x[(xyz)]
579#define DIRY(xyz) freearr_y[(xyz)->direction] 580#define DIRY(xyz) freearr_y[(xyz)]
580 581
581#define ARMOUR_SPEED(xyz) (xyz)->last_sp 582#define ARMOUR_SPEED(xyz) (xyz)->last_sp
582#define ARMOUR_SPELLS(xyz) (xyz)->gen_sp_armour 583#define ARMOUR_SPELLS(xyz) (xyz)->gen_sp_armour
583#define WEAPON_SPEED(xyz) (xyz)->last_sp 584#define WEAPON_SPEED(xyz) (xyz)->last_sp
584 585

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines