2020-03-27 21:47:29 +01:00
|
|
|
#ifndef MAP_H
|
|
|
|
#define MAP_H
|
|
|
|
|
2020-04-05 23:04:50 +02:00
|
|
|
extern int cells_across; // offset 0xAA67C
|
|
|
|
extern int cells_down; // offset 0xAA680
|
|
|
|
|
2020-04-10 01:29:12 +02:00
|
|
|
extern int current_region;
|
|
|
|
extern int old_region;
|
|
|
|
|
2020-04-10 01:37:20 +02:00
|
|
|
extern int LoadedArea;
|
|
|
|
extern int initarea;
|
2020-04-10 01:29:12 +02:00
|
|
|
|
2020-04-05 15:53:08 +02:00
|
|
|
extern char *map_lump;
|
2020-04-05 23:04:50 +02:00
|
|
|
extern unsigned short *cell_ptrs;
|
|
|
|
extern PACKED_CELL_OBJECT* cell_objects;
|
|
|
|
extern int sizeof_cell_object_computed_values;
|
|
|
|
extern CELL_DATA* cells;
|
|
|
|
extern int num_straddlers;
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-04-09 20:16:26 +02:00
|
|
|
extern int current_cell_x;
|
|
|
|
extern int current_cell_z;
|
|
|
|
|
2020-04-10 13:56:11 +02:00
|
|
|
extern int region_x;
|
|
|
|
extern int region_z;
|
|
|
|
|
|
|
|
extern int current_barrel_region_xcell;
|
|
|
|
extern int current_barrel_region_zcell;
|
|
|
|
|
2020-04-04 06:49:28 +02:00
|
|
|
extern void NewProcessRoadMapLump(ROAD_MAP_LUMP_DATA *pRoadMapLumpData, char *pLumpFile); // 0x0005D7BC
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
extern void ProcessJunctionsLump(char *lump_file, int lump_size); // 0x0005D6CC
|
|
|
|
|
|
|
|
extern void ProcessRoadsLump(char *lump_file, int lump_size); // 0x0005D6C4
|
|
|
|
|
|
|
|
extern void ProcessRoadBoundsLump(char *lump_file, int lump_size); // 0x0005D6D4
|
|
|
|
|
|
|
|
extern void ProcessJuncBoundsLump(char *lump_file, int lump_size); // 0x0005D6DC
|
|
|
|
|
|
|
|
extern struct MODEL * FindModelPtrWithName(char *name); // 0x0005D40C
|
|
|
|
|
|
|
|
extern int FindModelIdxWithName(char *name); // 0x0005D4C4
|
|
|
|
|
|
|
|
extern void InitCellData(); // 0x0005D36C
|
|
|
|
|
2020-04-04 06:49:28 +02:00
|
|
|
extern int newPositionVisible(VECTOR *pos, char *pvs, int ccx, int ccz); // 0x0005D61C
|
2020-03-27 21:47:29 +01:00
|
|
|
|
2020-04-04 06:49:28 +02:00
|
|
|
extern int PositionVisible(VECTOR *pos); // 0x0005D560
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
extern int CheckUnpackNewRegions(); // 0x0005C824
|
|
|
|
|
|
|
|
extern void ControlMap(); // 0x0005CC00
|
|
|
|
|
|
|
|
extern void InitMap(); // 0x0005CD80
|
|
|
|
|
2020-04-04 06:49:28 +02:00
|
|
|
extern void GetVisSetAtPosition(VECTOR *pos, char *tgt, int *ccx, int *ccz); // 0x0005D6E4
|
2020-03-27 21:47:29 +01:00
|
|
|
|
|
|
|
extern void PVSDecode(char *output, char *celldata, unsigned short sz, int havanaCorruptCellBodge); // 0x0005CFA8
|
|
|
|
|
|
|
|
extern void GetPVSRegionCell2(int source_region, int region, int cell, char *output); // 0x0005D224
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|