1 /*
2  * nazghul - an old-school RPG engine
3  * Copyright (C) 2002, 2003 Gordon McNutt
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License as published by the Free
7  * Software Foundation; either version 2 of the License, or (at your option)
8  * any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * this program; if not, write to the Free Foundation, Inc., 59 Temple Place,
17  * Suite 330, Boston, MA 02111-1307 USA
18  *
19  * Gordon McNutt
20  * gmcnutt@users.sourceforge.net
21  */
22 #ifndef dimensions_h
23 #define dimensions_h
24 
25 #include "macros.h"
26 
27 BEGIN_DECL
28 
29 #define STAT_CHARS_PER_LINE 46
30 
31 #define TILE_W   32
32 #define TILE_H   32
33 #define ASCII_W  8
34 #define ASCII_H  16
35 #define BORDER_W 16
36 #define BORDER_H 16
37 
38 #define MIN_MAP_SIZE 11
39 #define MAX_MAP_SIZE 19
40 #define DEF_MAP_SIZE 19
41 
42 extern int STATUS_MAX_MSG_SZ;
43 extern int SCREEN_W;
44 extern int SCREEN_H;
45 extern int CONSOLE_MAX_MSG_SZ;
46 
47 extern int MAP_TILE_W;
48 extern int MAP_TILE_H;
49 extern int MAP_X;
50 extern int MAP_Y;
51 extern int MAP_W;
52 extern int MAP_H;
53 
54 extern int CMD_X;
55 extern int CMD_Y;
56 extern int CMD_W;
57 extern int CMD_H;
58 
59 extern int STAT_X;
60 extern int STAT_Y;
61 extern int STAT_W;
62 extern int STAT_H;
63 extern int STAT_H_MAX;
64 
65 extern int FOOGOD_X;
66 extern int FOOGOD_Y;
67 extern int FOOGOD_W;
68 extern int FOOGOD_H;
69 
70 extern int WIND_X;
71 extern int WIND_Y;
72 extern int WIND_W;
73 extern int WIND_H;
74 
75 extern int CONS_X;
76 extern int CONS_Y;
77 extern int CONS_W;
78 extern int CONS_H;
79 extern int CONS_LINES;
80 
81 extern int SKY_X;
82 extern int SKY_Y;
83 extern int SKY_W;
84 extern int SKY_H;
85 extern int SKY_SPRITE_W;
86 
87 /* Set all the runtime-configurable UI dimensions */
88 int dimensions_init();
89 
90 END_DECL
91 
92 #endif
93