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 (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2003-2005 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2003-2005 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
9 | * the terms of the Affero GNU General Public License as published by the |
… | |
… | |
41 | |
41 | |
42 | #ifdef __NetBSD__ |
42 | #ifdef __NetBSD__ |
43 | # include <sys/param.h> |
43 | # include <sys/param.h> |
44 | #endif |
44 | #endif |
45 | |
45 | |
|
|
46 | #define MAXNUMLEVELS 256 // maximum number of levels possible |
46 | #define MAXLEVEL 115 // for treasure calculations only |
47 | #define MAXLEVEL_TREASURE 115 // for treasure calculations only |
47 | |
48 | |
48 | // maximum length of an object name in the protocol |
49 | // maximum length of an object name in the protocol |
49 | #define NAME_LEN 127 |
50 | #define NAME_LEN 127 |
50 | |
51 | |
51 | #define MAX_STAT 30 /* The maximum legal value of any stat */ |
52 | #define MAX_STAT 30 /* The maximum legal value of any stat */ |
… | |
… | |
109 | #define LOCKED_DOOR 20 |
110 | #define LOCKED_DOOR 20 |
110 | #define SPECIAL_KEY 21 |
111 | #define SPECIAL_KEY 21 |
111 | #define MAP 22 |
112 | #define MAP 22 |
112 | #define DOOR 23 |
113 | #define DOOR 23 |
113 | #define KEY 24 |
114 | #define KEY 24 |
114 | //25 |
115 | #define PHYSICS 25 // deliantra: "things that move" |
115 | #define TIMED_GATE 26 |
116 | #define TIMED_GATE 26 |
116 | #define TRIGGER 27 |
117 | #define TRIGGER 27 |
117 | #define GRIMREAPER 28 |
118 | #define GRIMREAPER 28 |
118 | #define MAGIC_EAR 29 |
119 | #define MAGIC_EAR 29 |
119 | #define TRIGGER_BUTTON 30 |
120 | #define TRIGGER_BUTTON 30 |
… | |
… | |
493 | #define FLAG_CONTENT_ON_GEN 108 |
494 | #define FLAG_CONTENT_ON_GEN 108 |
494 | #define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */ |
495 | #define FLAG_IS_A_TEMPLATE 109 /* Object has no ingame life until instanciated */ |
495 | #define FLAG_IS_BUILDABLE 110 /* Can build on item */ |
496 | #define FLAG_IS_BUILDABLE 110 /* Can build on item */ |
496 | #define FLAG_DESTROY_ON_DEATH 111 /* Object will be destroyed when env dies */ |
497 | #define FLAG_DESTROY_ON_DEATH 111 /* Object will be destroyed when env dies */ |
497 | #define FLAG_NO_MAP_SAVE 112 // item doesn't get saved with map |
498 | #define FLAG_NO_MAP_SAVE 112 // item doesn't get saved with map |
|
|
499 | #define FLAG_IS_QUAD 113 /* This is a destructible and buildable item |
|
|
500 | * (for the quads world for instance) |
498 | |
501 | */ |
|
|
502 | |
|
|
503 | // temporary assignments |
|
|
504 | #define FLAG_PHYSICS_QUEUE 114 // object queued for physics |
|
|
505 | |
499 | #define NUM_FLAGS 113 /* Should always be equal to the last |
506 | #define NUM_FLAGS 115 /* Should always be equal to the last |
500 | * defined flag + 1. If you change this, |
507 | * defined flag + 1. If you change this, |
501 | * make sure you update the flag_links |
508 | * make sure you update the flag_links |
502 | * in common/loader.l |
509 | * in common/loader.l |
503 | */ |
510 | */ |
504 | |
511 | |
… | |
… | |
645 | /* changing directions */ |
652 | /* changing directions */ |
646 | /* this is VERTICAL movement */ |
653 | /* this is VERTICAL movement */ |
647 | #define LO4 15 /* bitmasks for upper and lower 4 bits from 8 bit fields */ |
654 | #define LO4 15 /* bitmasks for upper and lower 4 bits from 8 bit fields */ |
648 | #define HI4 240 |
655 | #define HI4 240 |
649 | |
656 | |
650 | #define BLANK_FACE_NAME "blank.x11" |
657 | #define BLANK_FACE_NAME "blank.x11" |
651 | #define EMPTY_FACE_NAME "empty.x11" |
658 | #define EMPTY_FACE_NAME "empty.x11" |
|
|
659 | #define MAGICMOUTH_FACE_NAME "magicmouth.x11" |
652 | |
660 | |
653 | /* |
661 | /* |
654 | * Defines for the luck/random functions to make things more readable |
662 | * Defines for the luck/random functions to make things more readable |
655 | */ |
663 | */ |
656 | |
664 | |