45 lines
575 B
C
45 lines
575 B
C
//
|
|
// An A-Z of the current city.
|
|
//
|
|
|
|
#ifndef _AZ_
|
|
#define _AZ_
|
|
|
|
|
|
//
|
|
// Initialises the AZ module.
|
|
//
|
|
|
|
void AZ_init(void);
|
|
|
|
|
|
//
|
|
// Creates a line-based representation of the current city. Make sure
|
|
// you have already sunken the roads before calling this function.
|
|
//
|
|
|
|
#define AZ_LINE_TYPE_ROAD 0
|
|
#define AZ_LINE_TYPE_BUILDING 1
|
|
#define AZ_LINE_TYPE_FENCE 2
|
|
#define AZ_LINE_TYPE_NUMBER 3
|
|
|
|
typedef struct
|
|
{
|
|
UBYTE type;
|
|
UBYTE x1;
|
|
UBYTE z1;
|
|
UBYTE x2;
|
|
UBYTE z2;
|
|
|
|
} AZ_Line;
|
|
|
|
extern AZ_Line AZ_line[];
|
|
extern SLONG AZ_line_upto;
|
|
|
|
void AZ_create_lines(void);
|
|
|
|
|
|
|
|
|
|
|
|
#endif |