1 /*
2 This file is part of "Avanor, the Land of Mystery" roguelike game
3 Home page: http://www.avanor.com/
4 Copyright (C) 2000-2003 Vadim Gaidukevich
5 
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10 
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15 
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20 
21 #ifndef __DEFS_H
22 #define __DEFS_H
23 
24 
25 #include "defs01.h"
26 
27 #define DUR_INFINITE 65535
28 
29 enum BODYPART {BP_UNKNOWN = 0,
30 BP_HEAD, BP_NECK, BP_BODY, BP_CLOAK,
31 BP_HAND, BP_RING, BP_GLOVES,
32 BP_BOOTS, BP_LIGHTSORCE, BP_TOOL, BP_MISSILEWEAPON, BP_MISSILE, BP_EOF, BP_OTHER,
33 BP_ONEHANDED, BP_TWOHANDED};
34 
35 
36 enum RBP_FLAG {RBP_UNKNOWN = 0, RBP_BLOCK = 1};
37 
38 enum STAIRWAYTYPE {STW_UNKNOWN = 0, STW_UP, STW_DOWN };
39 
40 
41 enum ARTIFACT_STATE
42 {
43 	ARTIFACT_NO		= 0,
44 	ARTIFACT_YES	= 1,
45 	ARTIFACT_CREATED= 2
46 };
47 
48 enum TARGET_REASON
49 {
50 	TR_NONE				= 0,
51 	TR_ATTACK_TARGET	= 1,
52 	TR_ATTACK_POSTION	= 2,
53 	TR_ATTACK_DIRECTION	= 3,
54 	TR_IMPROVE			= 4,
55 	TR_YES_NO			= 5, //by default - no
56 	TR_NO_YES			= 6, //by default - yes
57 	TR_HOW_MUCH			= 7, //enter a number betwean to numbers...
58 	TR_LETTER			= 8, //enrer a letter in range
59 	TR_STEAL_ITEM		= 9,
60 	TR_SELECT_ITEM		= 10,
61 };
62 
63 
64 enum STDMAP {M_UNKNOWN = 0, M_GREENGRAS, M_GREENTREE, M_SAND, M_WINDOW, M_MAGMA,
65 M_QUARTZ, M_CAVEFLOOR, M_STONEFLOOR, M_PATH, M_WOODWALL, M_STONEWALL, M_WATER, M_DEEPWATER,
66 M_HILL, M_LOWMOUNTAIN, M_MOUNTAIN, M_HIGHMOUNTAIN, M_BRIDGE, M_ROAD, M_OBSIDIANFLOOR,
67 M_FENCE, M_GOLDENFLOOR, M_MARBLEWALL, M_BLACKMARBLEWALL, M_GOLDENFENCE, M_TELEPORTWHITE};
68 
69 
70 enum RESULT
71 {
72 	FAIL		= 0,
73 	SUCCESS		= 1,
74 	CONTINUE	= 2,
75 	ABORT		= 3,
76 };
77 
78 
79 #endif
80 
81 
82 
83 
84