(svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h'

This commit is contained in:
rubidium
2007-12-25 11:26:07 +00:00
parent 00c9d3ef20
commit 81bf9f8503
134 changed files with 180 additions and 169 deletions

View File

@@ -6,8 +6,8 @@
#define TOWN_H
#include "oldpool.h"
#include "player.h"
#include "functions.h"
#include "core/random_func.hpp"
#include "cargo_type.h"
enum {
HOUSE_NO_CLASS = 0,
@@ -350,5 +350,11 @@ uint OriginalTileRandomiser(uint x, uint y);
void ResetHouses();
void ClearTownHouse(Town *t, TileIndex tile);
void AfterLoadTown();
void UpdateTownMaxPass(Town *t);
bool CheckIfAuthorityAllows(TileIndex tile);
Town *ClosestTownFromTile(TileIndex tile, uint threshold);
void ChangeTownRating(Town *t, int add, int max);
uint GetTownRadiusGroup(const Town* t, TileIndex tile);
#endif /* TOWN_H */