src/town.h
changeset 8683 1f3141299c8e
parent 8682 c41d89c0ca8f
child 8709 4187ad809fe7
equal deleted inserted replaced
8682:c41d89c0ca8f 8683:1f3141299c8e
   107 	byte have_ratings;
   107 	byte have_ratings;
   108 	uint8 unwanted[MAX_PLAYERS]; ///< how many months companies aren't wanted by towns (bribe)
   108 	uint8 unwanted[MAX_PLAYERS]; ///< how many months companies aren't wanted by towns (bribe)
   109 	PlayerByte exclusivity;      ///< which player has exslusivity
   109 	PlayerByte exclusivity;      ///< which player has exslusivity
   110 	uint8 exclusive_counter;     ///< months till the exclusivity expires
   110 	uint8 exclusive_counter;     ///< months till the exclusivity expires
   111 	int16 ratings[MAX_PLAYERS];
   111 	int16 ratings[MAX_PLAYERS];
   112 	int16 test_rating;
       
   113 
   112 
   114 	/* Maximum amount of passengers and mail that can be transported. */
   113 	/* Maximum amount of passengers and mail that can be transported. */
   115 	uint32 max_pass;
   114 	uint32 max_pass;
   116 	uint32 max_mail;
   115 	uint32 max_mail;
   117 	uint32 new_max_pass;
   116 	uint32 new_max_pass;
   357 void UpdateTownMaxPass(Town *t);
   356 void UpdateTownMaxPass(Town *t);
   358 bool CheckIfAuthorityAllows(TileIndex tile);
   357 bool CheckIfAuthorityAllows(TileIndex tile);
   359 Town *ClosestTownFromTile(TileIndex tile, uint threshold);
   358 Town *ClosestTownFromTile(TileIndex tile, uint threshold);
   360 void ChangeTownRating(Town *t, int add, int max);
   359 void ChangeTownRating(Town *t, int add, int max);
   361 uint GetTownRadiusGroup(const Town* t, TileIndex tile);
   360 uint GetTownRadiusGroup(const Town* t, TileIndex tile);
   362 void SetTownRatingTestMode(bool mode);
       
   363 
   361 
   364 #endif /* TOWN_H */
   362 #endif /* TOWN_H */