4 // Copyright 2007, 2008 Lancer-X/ASCEAI
6 // This file is part of Meritous.
8 // Meritous is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation, either version 3 of the License, or
11 // (at your option) any later version.
13 // Meritous is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with Meritous. If not, see <http://www.gnu.org/licenses/>.
22 // Exposes mapgen.c functionality and types
27 struct RoomConnection
{
31 struct RoomConnection
*n
;
45 struct RoomConnection
*con
;
57 extern Room rooms
[3000];
59 void RandomGenerateMap();
61 void Put(int x
, int y
, unsigned char tile
, int room
);
62 unsigned char Get(int x
, int y
);
63 int GetRoom(int x
, int y
);
64 int GetVisited(int x
, int y
);
65 extern int place_of_power
;
70 void DestroyDungeon();
72 void Paint(int xp
, int yp
, int w
, int h
, char *fname
);