OpenTTD Source
1.11.0-beta2
|
#include "../stdafx.h"
#include "../newgrf_house.h"
#include "../town.h"
#include "../landscape.h"
#include "../subsidy_func.h"
#include "../strings_func.h"
#include "../tilematrix_type.hpp"
#include "saveload.h"
#include "newgrf_sl.h"
#include "../safeguards.h"
Go to the source code of this file.
Typedefs | |
typedef TileMatrix< CargoTypes, 4 > | AcceptanceMatrix |
Functions | |
void | RebuildTownCaches () |
Rebuild all the cached variables of towns. | |
void | UpdateHousesAndTowns () |
Check and update town and house values. More... | |
static void | Save_HIDS () |
static void | Load_HIDS () |
const SaveLoad * | GetTileMatrixDesc () |
static void | RealSave_Town (Town *t) |
static void | Save_TOWN () |
static void | Load_TOWN () |
static void | Ptrs_TOWN () |
Fix pointers when loading town data. | |
Variables | |
static const SaveLoad | _town_desc [] |
Save and load of towns. | |
static const SaveLoad | _town_supplied_desc [] |
static const SaveLoad | _town_received_desc [] |
const ChunkHandler | _town_chunk_handlers [] |
Chunk handler for towns. More... | |
Code handling saving and loading of towns and houses
Definition in file town_sl.cpp.
void UpdateHousesAndTowns | ( | ) |
Check and update town and house values.
Checked are the HouseIDs. Updated are the town population the number of houses per town, the town radius and the max passengers of the town.
Definition at line 65 of file town_sl.cpp.
References GetCleanHouseType(), IsTileType(), MapSize(), MP_HOUSE, and NEW_HOUSE_OFFSET.
const ChunkHandler _town_chunk_handlers[] |
|
static |
Definition at line 210 of file town_sl.cpp.
|
static |
Definition at line 201 of file town_sl.cpp.