town.h
changeset 193 0a7025304867
parent 121 c2f18f4d8be1
child 820 924f78b43e9e
equal deleted inserted replaced
192:614bba52258d 193:0a7025304867
     7 	TileIndex xy;
     7 	TileIndex xy;
     8 
     8 
     9 	// Current population of people and amount of houses.
     9 	// Current population of people and amount of houses.
    10 	uint16 num_houses;
    10 	uint16 num_houses;
    11 	uint32 population;
    11 	uint32 population;
    12 	
    12 
    13 	// Town name
    13 	// Town name
    14 	uint16 townnametype;
    14 	uint16 townnametype;
    15 	uint32 townnameparts;
    15 	uint32 townnameparts;
    16 	
    16 
    17 	// NOSAVE: Location of name sign, UpdateTownVirtCoord updates this. 
    17 	// NOSAVE: Location of name sign, UpdateTownVirtCoord updates this.
    18 	ViewportSign sign;
    18 	ViewportSign sign;
    19 	
    19 
    20 	// Makes sure we don't build certain house types twice.
    20 	// Makes sure we don't build certain house types twice.
    21 	byte flags12;
    21 	byte flags12;
    22 
    22 
    23 	// Which players have a statue?
    23 	// Which players have a statue?
    24 	byte statues;
    24 	byte statues;
    30 	byte have_ratings;
    30 	byte have_ratings;
    31 	uint8 unwanted[MAX_PLAYERS]; // how many months companies aren't wanted by towns (bribe)
    31 	uint8 unwanted[MAX_PLAYERS]; // how many months companies aren't wanted by towns (bribe)
    32 	uint8 exclusivity;	     // which player has exslusivity
    32 	uint8 exclusivity;	     // which player has exslusivity
    33 	uint8 exclusive_counter;     // months till the exclusivity expires
    33 	uint8 exclusive_counter;     // months till the exclusivity expires
    34 	int16 ratings[MAX_PLAYERS];
    34 	int16 ratings[MAX_PLAYERS];
    35 		
    35 
    36 	// Maximum amount of passengers and mail that can be transported.
    36 	// Maximum amount of passengers and mail that can be transported.
    37 	uint16 max_pass;
    37 	uint16 max_pass;
    38 	uint16 max_mail;
    38 	uint16 max_mail;
    39 	uint16 new_max_pass;
    39 	uint16 new_max_pass;
    40 	uint16 new_max_mail;
    40 	uint16 new_max_mail;
    50 	// Amount of food and paper that was transported. Actually a bit mask would be enough.
    50 	// Amount of food and paper that was transported. Actually a bit mask would be enough.
    51 	uint16 act_food;
    51 	uint16 act_food;
    52 	uint16 act_water;
    52 	uint16 act_water;
    53 	uint16 new_act_food;
    53 	uint16 new_act_food;
    54 	uint16 new_act_water;
    54 	uint16 new_act_water;
    55 	
    55 
    56 	// Time until we rebuild a house.
    56 	// Time until we rebuild a house.
    57 	byte time_until_rebuild;
    57 	byte time_until_rebuild;
    58 
    58 
    59 	// When to grow town next time.
    59 	// When to grow town next time.
    60 	byte grow_counter;
    60 	byte grow_counter;
    61 	byte growth_rate;	
    61 	byte growth_rate;
    62 
    62 
    63 	// Fund buildings program in action?
    63 	// Fund buildings program in action?
    64 	byte fund_buildings_months;
    64 	byte fund_buildings_months;
    65 	
    65 
    66 	// Fund road reconstruction in action?
    66 	// Fund road reconstruction in action?
    67 	byte road_build_months;
    67 	byte road_build_months;
    68 
    68 
    69 	// Index in town array
    69 	// Index in town array
    70 	byte index;
    70 	byte index;