src/town.h
branchnoai
changeset 9599 949374e83b78
parent 9574 698395509d12
child 6980 6b5dee376733
child 9601 b499fdd106d5
equal deleted inserted replaced
9598:b73018a5ffc0 9599:949374e83b78
   124 	uint16 act_water;
   124 	uint16 act_water;
   125 	uint16 new_act_food;
   125 	uint16 new_act_food;
   126 	uint16 new_act_water;
   126 	uint16 new_act_water;
   127 
   127 
   128 	/* Time until we rebuild a house. */
   128 	/* Time until we rebuild a house. */
   129 	byte time_until_rebuild;
   129 	uint16 time_until_rebuild;
   130 
   130 
   131 	/* When to grow town next time. */
   131 	/* When to grow town next time. */
   132 	byte grow_counter;
   132 	uint16 grow_counter;
   133 	byte growth_rate;
   133 	int16 growth_rate;
   134 
   134 
   135 	/* Fund buildings program in action? */
   135 	/* Fund buildings program in action? */
   136 	byte fund_buildings_months;
   136 	byte fund_buildings_months;
   137 
   137 
   138 	/* Fund road reconstruction in action? */
   138 	/* Fund road reconstruction in action? */
   232 	RATING_BRIBE_UP_STEP = 200,
   232 	RATING_BRIBE_UP_STEP = 200,
   233 	RATING_BRIBE_MAXIMUM = 800,
   233 	RATING_BRIBE_MAXIMUM = 800,
   234 	RATING_BRIBE_DOWN_TO = -50        // XXX SHOULD BE SOMETHING LOWER?
   234 	RATING_BRIBE_DOWN_TO = -50        // XXX SHOULD BE SOMETHING LOWER?
   235 };
   235 };
   236 
   236 
   237 enum {
   237 /** This is the number of ticks between towns being processed for building new
   238 /* This is the base "normal" number of towns on the 8x8 map, when
   238  * houses or roads. This value originally came from the size of the town array
   239  * one town should get grown per tick. The other numbers of towns
   239  * in TTD. */
   240  * are then scaled based on that. */
   240 static const byte TOWN_GROWTH_FREQUENCY = 70;
   241 	TOWN_GROWTH_FREQUENCY = 23,
   241 
   242 /* Simple value that indicates the house has reached final stage of construction*/
   242 /** Simple value that indicates the house has reached the final stage of
   243 	TOWN_HOUSE_COMPLETED  =  3,
   243  * construction. */
   244 };
   244 static const byte TOWN_HOUSE_COMPLETED = 3;
   245 
   245 
   246 /** This enum is used in conjonction with town->flags12.
   246 /** This enum is used in conjonction with town->flags12.
   247  * IT simply states what bit is used for.
   247  * IT simply states what bit is used for.
   248  * It is pretty unrealistic (IMHO) to only have one church/stadium
   248  * It is pretty unrealistic (IMHO) to only have one church/stadium
   249  * per town, NO MATTER the population of it.
   249  * per town, NO MATTER the population of it.