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.103 by root, Mon Oct 12 21:27:55 2009 UTC vs.
Revision 1.109 by root, Wed Nov 11 04:45:22 2009 UTC

37#include <autoconf.h> 37#include <autoconf.h>
38 38
39#define FONTDIR "" 39#define FONTDIR ""
40#define FONTNAME "" 40#define FONTNAME ""
41 41
42/* Decstations have trouble with fabs()... */
43#define FABS(x) fabs (x)
44
45#ifdef __NetBSD__ 42#ifdef __NetBSD__
46# include <sys/param.h> 43# include <sys/param.h>
47#endif 44#endif
48 45
46#define MAXLEVEL 115 // for treasure calculations only
47
49// maximum length of an object name in the protocol 48// maximum length of an object name in the protocol
50#define NAME_LEN 127 49#define NAME_LEN 127
51
52#undef MIN
53#undef MAX
54 50
55#define MAX_STAT 30 /* The maximum legal value of any stat */ 51#define MAX_STAT 30 /* The maximum legal value of any stat */
56#define MIN_STAT 1 /* The minimum legal value of any stat */ 52#define MIN_STAT 1 /* The minimum legal value of any stat */
57 53
58//TODO: not only use more reasonable values, also enforce them 54//TODO: not only use more reasonable values, also enforce them
63#define MIN_DAM 0 59#define MIN_DAM 0
64#define MAX_DAM 200 60#define MAX_DAM 200
65#define MIN_DIGESTION -35 61#define MIN_DIGESTION -35
66#define MAX_DIGESTION 70 62#define MAX_DIGESTION 70
67 63
68#define MAX_BUF 1024 64#define MAX_BUF 1024 /* Used for all kinds of things */
69 /* Used for all kinds of things */
70#define VERY_BIG_BUF 2048
71#define HUGE_BUF 10240 /* Used for messages - some can be quite long */
72#define SOCKET_BUFLEN 4096 /* Max length a packet could be */
73
74#define FONTSIZE 3000 /* Max chars in font */
75
76#define MAX_ANIMATIONS 256
77 65
78#define MAX_NAME 48 66#define MAX_NAME 48
79#define MAX_EXT_TITLE 98
80 67
81#define ATTUNE_REPELL 16 // levels diff for attune/repell 68#define ATTUNE_REPELL 16 // levels diff for attune/repell
82 69
83//TODO: remove all calls to fatal and replace them by cleanup 70//TODO: remove all calls to fatal and replace them by cleanup
84#define OUT_OF_MEMORY 0 71#define OUT_OF_MEMORY 0
406 393
407/* the flags */ 394/* the flags */
408 395
409#define FLAG_ALIVE 0 /* Object can fight (or be fought) */ 396#define FLAG_ALIVE 0 /* Object can fight (or be fought) */
410#define FLAG_WIZ 1 /* Object has special privilegies */ 397#define FLAG_WIZ 1 /* Object has special privilegies */
411#define FLAG_REMOVED 2 /* Object is not in any map or invenory */ 398#define FLAG_REMOVED 2 /* Object is not in any map or inventory */
412#define FLAG_FREED 3 /* Object is in the list of free objects */ 399#define FLAG_FREED 3 /* Object is in the list of free objects */
413#define FLAG_WIZLOOK 4 /* disable los and lighting */ 400#define FLAG_WIZLOOK 4 /* disable los and lighting */
414#define FLAG_APPLIED 5 /* Object is ready for use by living */ 401#define FLAG_APPLIED 5 /* Object is ready for use by living */
415#define FLAG_UNPAID 6 /* Object hasn't been paid for yet */ 402#define FLAG_UNPAID 6 /* Object hasn't been paid for yet */
416#define FLAG_USE_SHIELD 7 /* Can this creature use a shield? */ 403#define FLAG_USE_SHIELD 7 /* Can this creature use a shield? */
455#define FLAG_UNAGGRESSIVE 38 /* Monster doesn't attack players */ 442#define FLAG_UNAGGRESSIVE 38 /* Monster doesn't attack players */
456#define FLAG_REFL_MISSILE 39 /* Arrows will reflect from object */ 443#define FLAG_REFL_MISSILE 39 /* Arrows will reflect from object */
457#define FLAG_REFL_SPELL 40 /* Spells (some) will reflect from object */ 444#define FLAG_REFL_SPELL 40 /* Spells (some) will reflect from object */
458 445
459#define FLAG_NO_MAGIC 41 /* Spells (some) can't pass this object */ 446#define FLAG_NO_MAGIC 41 /* Spells (some) can't pass this object */
460#define FLAG_NO_FIX_PLAYER 42 /* fix_player() won't be called */ 447//#define FLAG_NO_FIX_PLAYER 42*/ /* fix_player() won't be called */
461#define FLAG_IS_LIGHTABLE 43 /* object can be lit */ 448#define FLAG_IS_LIGHTABLE 43 /* object can be lit */
462#define FLAG_TEAR_DOWN 44 /* at->faces[hp*animations/maxhp] at hit */ 449#define FLAG_TEAR_DOWN 44 /* at->faces[hp*animations/maxhp] at hit */
463#define FLAG_RUN_AWAY 45 /* Object runs away from nearest player \ 450#define FLAG_RUN_AWAY 45 /* Object runs away from nearest player \
464 but can still attack at a distance */ 451 but can still attack at a distance */
465 452

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines