11 int cap; /* for this model */
24 extern struct climaterange altclimates[];
28 struct climate *climateyear(struct afrhex *hex, int year);
34 int64_t adjacent[18]; /* though we can calculate adjacents */
35 struct afrhex *adjhex[18]; /* direct pointers */
38 extern struct maphex maphexes[];
42 unsigned int freq[2]; /* allele frequency count */
43 struct climate *climate;
46 unsigned int outmigrate[2];
47 unsigned int inmigrate[2];
49 /* migration topology */
52 /* some computed data */
53 int pop, migrants; /* total pop, number of emmigrants, dest attr */
54 int attract; /* how attractive is this as a destination */
59 struct climate *find_climate(char *code);
60 struct climate *climateyear(struct afrhex *hex, int year);
61 void nextgen(struct afrhex *hexlist, int year, unsigned int climate);
62 void climate_init(double width, double capfactor);
63 struct afrhex *map_init(struct maphex *maphexes, double width, double divisor);
64 uint64_t total_pop(struct afrhex *map);
66 struct afrhex *find_hex(struct afrhex *map, int64_t hex);
67 struct afrhex *search_hex(struct afrhex *map, int64_t hex);