/* The streets, and how far apart places are along them. Streets open and close. */ #ifndef TOWN_H #define TOWN_H #include "records.h" #define MAX_PLACES 32 /* The shortest walk from one place to another on a day, in metres, by the streets open then. */ int distance(struct day day, const char *start, const char *end); /* The nearest of several places on a day. Ties go to the first listed. */ const char *nearest(struct day day, const char *start, const char *const places[], int n); /* Every place there has ever been in town, in alphabetical order. */ int every_place(const char *out[]); /* Whether a place is north of the river. */ int north(const char *place); #endif