|
|
|
|
//HEADER_GOES_HERE
|
|
|
|
|
#ifndef __DRLG_L3_H__
|
|
|
|
|
#define __DRLG_L3_H__
|
|
|
|
|
|
|
|
|
|
extern BOOLEAN lavapool;
|
|
|
|
|
extern int abyssx;
|
|
|
|
|
extern int lockoutcnt;
|
|
|
|
|
extern BOOLEAN lockout[40][40];
|
|
|
|
|
|
|
|
|
|
void AddFenceDoors();
|
|
|
|
|
void FenceDoorFix();
|
|
|
|
|
BOOL DRLG_L3Anvil();
|
|
|
|
|
void FixL3Warp();
|
|
|
|
|
void FixL3HallofHeroes();
|
|
|
|
|
void DRLG_L3LockRec(int x, int y);
|
|
|
|
|
BOOL DRLG_L3Lockout();
|
|
|
|
|
void CreateL3Dungeon( int rseed, int entry);
|
|
|
|
|
void DRLG_L3(int entry);
|
|
|
|
|
void InitL3Dungeon();
|
|
|
|
|
BOOL DRLG_L3FillRoom(int x1, int y1, int x2, int y2);
|
|
|
|
|
void DRLG_L3CreateBlock(int x, int y, int obs, int dir);
|
|
|
|
|
void DRLG_L3FloorArea(int x1, int y1, int x2, int y2);
|
|
|
|
|
void DRLG_L3FillDiags();
|
|
|
|
|
void DRLG_L3FillSingles();
|
|
|
|
|
void DRLG_L3FillStraights();
|
|
|
|
|
void DRLG_L3Edges();
|
|
|
|
|
int DRLG_L3GetFloorArea();
|
|
|
|
|
void DRLG_L3MakeMegas();
|
|
|
|
|
void DRLG_L3River();
|
|
|
|
|
void DRLG_L3Pool();
|
|
|
|
|
BOOL DRLG_L3SpawnEdge(int x, int y, int *totarea);
|
|
|
|
|
BOOL DRLG_L3Spawn(int x, int y, int *totarea);
|
|
|
|
|
void DRLG_L3PoolFix();
|
|
|
|
|
BOOL DRLG_L3PlaceMiniSet(const BYTE *miniset, int tmin, int tmax, int cx, int cy, BOOL setview, int ldir);
|
|
|
|
|
void DRLG_L3PlaceRndSet(const BYTE *miniset, int rndper);
|
|
|
|
|
void DRLG_L3Wood();
|
|
|
|
|
BOOL WoodVertU(int i, int y);
|
|
|
|
|
BOOL WoodVertD(int i, int y);
|
|
|
|
|
BOOL WoodHorizL(int x, int j);
|
|
|
|
|
BOOL WoodHorizR(int x, int j);
|
|
|
|
|
void DRLG_L3Pass3();
|
|
|
|
|
void LoadL3Dungeon(char *sFileName, int vx, int vy);
|
|
|
|
|
void LoadPreL3Dungeon(char *sFileName, int vx, int vy);
|
|
|
|
|
|
|
|
|
|
/* rdata */
|
|
|
|
|
extern const BYTE L3ConvTbl[16];
|
|
|
|
|
extern const BYTE L3UP[20];
|
|
|
|
|
extern const BYTE L3DOWN[20];
|
|
|
|
|
extern const BYTE L3HOLDWARP[20];
|
|
|
|
|
extern const BYTE L3TITE1[34];
|
|
|
|
|
extern const BYTE L3TITE2[34];
|
|
|
|
|
extern const BYTE L3TITE3[34];
|
|
|
|
|
extern const BYTE L3TITE6[42];
|
|
|
|
|
extern const BYTE L3TITE7[42];
|
|
|
|
|
extern const BYTE L3TITE8[20];
|
|
|
|
|
extern const BYTE L3TITE9[20];
|
|
|
|
|
extern const BYTE L3TITE10[20];
|
|
|
|
|
extern const BYTE L3TITE11[20];
|
|
|
|
|
extern const BYTE L3TITE12[6];
|
|
|
|
|
extern const BYTE L3TITE13[6];
|
|
|
|
|
extern const BYTE L3CREV1[6];
|
|
|
|
|
extern const BYTE L3CREV2[6];
|
|
|
|
|
extern const BYTE L3CREV3[6];
|
|
|
|
|
extern const BYTE L3CREV4[6];
|
|
|
|
|
extern const BYTE L3CREV5[6];
|
|
|
|
|
extern const BYTE L3CREV6[6];
|
|
|
|
|
extern const BYTE L3CREV7[6];
|
|
|
|
|
extern const BYTE L3CREV8[6];
|
|
|
|
|
extern const BYTE L3CREV9[6];
|
|
|
|
|
extern const BYTE L3CREV10[6];
|
|
|
|
|
extern const BYTE L3CREV11[6];
|
|
|
|
|
extern const BYTE L3ISLE1[14];
|
|
|
|
|
extern const BYTE L3ISLE2[14];
|
|
|
|
|
extern const BYTE L3ISLE3[14];
|
|
|
|
|
extern const BYTE L3ISLE4[14];
|
|
|
|
|
extern const BYTE L3ISLE5[10];
|
|
|
|
|
extern const BYTE L3XTRA1[4];
|
|
|
|
|
extern const BYTE L3XTRA2[4];
|
|
|
|
|
extern const BYTE L3XTRA3[4];
|
|
|
|
|
extern const BYTE L3XTRA4[4];
|
|
|
|
|
extern const BYTE L3XTRA5[4];
|
|
|
|
|
extern const BYTE L3ANVIL[244];
|
|
|
|
|
|
|
|
|
|
#endif /* __DRLG_L3_H__ */
|