8 extern const char stat_names
[MAX_STAT
][80];
9 extern const char stat_long_names
[MAX_STAT
][80];
10 extern const char stat_descriptions
[MAX_STAT
][1024];
12 extern const char state_names
[4][80];
15 /* TODO: put it into a struct */
22 extern unit_t units
[MAX_UNITS
];
23 extern house_t houses
[MAX_HOUSES
];
24 extern int num_houses
;
27 extern pool_t pools
[MAX_POOLS
];
30 extern faction_t factions
[8];
32 extern unit_t
* unit_grid
[LEVEL_H
][LEVEL_W
];
33 extern house_t
* house_grid
[LEVEL_H
][LEVEL_W
];
35 extern Uint8 scent_human
[LEVEL_H
][LEVEL_W
];
36 extern Uint8 fog
[LEVEL_H
][LEVEL_W
];
39 extern int xcollide(Uint32 tx
, Uint32 ty
, Uint8 w
, Uint8 h
);
42 #define LOG_MESSAGE_MAX 16
44 typedef struct log_t
{
46 char message
[LOG_MESSAGE_MAX
][256];
47 Uint32 age
[LOG_MESSAGE_MAX
];
48 Uint32 color
[LOG_MESSAGE_MAX
];
58 extern void log_reset(log_t
*log
);
59 extern void log_add(log_t
*log
, const char *buf
);
60 extern void log_addf(log_t
*log
, char *fmt
, ...);