-
Notifications
You must be signed in to change notification settings - Fork 0
/
City.h
27 lines (22 loc) · 907 Bytes
/
City.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef CITY_H_INCLUDED
#define CITY_H_INCLUDED
#define MAX_CITIES 255
#define CITY_NO_PRODUCTION 0 // to put in the production type and order fields
/// TODO: Update this shit to the new paradigm
typedef struct City {
char name[80];
int x, y; // location
int size; // population size
int faction_id; // id of the controlling faction
short budget_money;
short budget_production; // budget is 0-20 in each
short budget_research; // it is a priority
short budget_infrastructure; // value/(sum-of-values) is how much you get
short budget_population; // based on city stuff
float accumulated_production;
int production_type; // unit type (ground, air, sea)
unsigned int production_order; // unit flag
int production_counter; // accumulated progress
int growth_counter; // city growth thing, more means growth
} City;
#endif // CITY_H_INCLUDED