2. Shared game records
Complete file:
src/CIV.H.
Before reading the larger C files, we can read one complete header. CIV.H
declares records used for terrain types, unit types, cities and individual
units.
The field names are inferred. Their widths and signed types preserve the
DOS representation. Some names elsewhere in the source are awkward because
identifier spelling can affect the old compiler’s allocation of variables
and the linker’s order of global storage.
Lines 1–11.
struct terrain_type {
char name[12];
unsigned char move_cost;
signed char defense;
unsigned char food, shields, trade, f5, f6;
};