OpenTTD Source 20250727-master-g79524af5fc
|
Sprites to use and how to display them for town tiles. More...
Go to the source code of this file.
Macros | |
#define | M(s1, p1, s2, p2, dx, dy, sx, sy, sz, p) { {{dx, dy, 0}, {sx, sy, sz}, {}}, { s1, p1 }, { s2, p2 }, p} |
Writes the data into the Town Tile Drawing Struct. | |
#define | MS(mnd, mxd, p, rc, bn, rr, mg, ca1, ca2, ca3, bf, ba, cg1, cg2, cg3) |
Make sure we have the right number of elements: 4 variants * 4 build stages for each house. | |
Variables | |
static const DrawBuildingsTileStruct | _town_draw_tile_data [] |
structure of houses graphics | |
const HouseSpec | _original_house_specs [] |
House specifications from original data. | |
Sprites to use and how to display them for town tiles.
Definition in file town_land.h.
#define M | ( | s1, | |
p1, | |||
s2, | |||
p2, | |||
dx, | |||
dy, | |||
sx, | |||
sy, | |||
sz, | |||
p | |||
) | { {{dx, dy, 0}, {sx, sy, sz}, {}}, { s1, p1 }, { s2, p2 }, p} |
Writes the data into the Town Tile Drawing Struct.
s1 | The first sprite of the building, mostly the ground sprite |
p1 | The first sprite's palette of the building, mostly the ground sprite |
s2 | The second sprite of the building. |
p2 | The second sprite's palette of the building. |
dx | The x-position of the sprite within the tile. |
dy | the y-position of the sprite within the tile. |
sx | the x-extent of the sprite. |
sy | the y-extent of the sprite. |
sz | the z-extent of the sprite. |
p | set to 1 if a lift is present () |
Definition at line 24 of file town_land.h.
#define MS | ( | mnd, | |
mxd, | |||
p, | |||
rc, | |||
bn, | |||
rr, | |||
mg, | |||
ca1, | |||
ca2, | |||
ca3, | |||
bf, | |||
ba, | |||
cg1, | |||
cg2, | |||
cg3 | |||
) |
Make sure we have the right number of elements: 4 variants * 4 build stages for each house.
Describes the data that defines each house in the game
mnd | introduction year of the house |
mxd | last year it can be built |
p | population |
rc | cost multiplier for removing it |
bn | building name |
rr | rating decrease if removed |
mg | mail generation multiplier |
ca1 | acceptance for 1st CargoType |
ca2 | acceptance for 2nd CargoType |
ca3 | acceptance for 3rd CargoType |
bf | building flags (size, stadium etc...) |
ba | building availability (zone, climate...) |
cg1 | 1st CargoType available |
cg2 | 2nd CargoType available |
cg3 | 3rd CargoType available |
Definition at line 1812 of file town_land.h.
|
static |
structure of houses graphics
Definition at line 27 of file town_land.h.
Referenced by DrawTile_Town().