OpenTTD Source
20241121-master-g67a0fccfad
|
Information about the behaviour of the default industry tiles. More...
Go to the source code of this file.
Data Structures | |
struct | DrawIndustryAnimationStruct |
This is used to gather some data about animation drawing in the industry code Image_1-2-3 are in fact only offset in the sprites used by the industry. More... | |
struct | DrawIndustryCoordinates |
Simple structure gathering x,y coordinates for industries animations. More... | |
Macros | |
#define | M(s1, p1, s2, p2, sx, sy, w, h, dz, p) { { s1, p1 }, { s2, p2 }, sx, sy, w, h, dz, p } |
Macro to ease the declaration of the array. More... | |
#define | MD(img1, img2, img3) { (50 - img1 * 2), img1, img2, img3 } |
this is ONLY used for Toy Factory. More... | |
Variables | |
static const DrawBuildingsTileStruct | _industry_draw_tile_data [NEW_INDUSTRYTILEOFFSET *4] |
Structure for industry tiles drawing. | |
static const DrawIndustryAnimationStruct | _draw_industry_spec1 [96] |
static const DrawIndustryCoordinates | _drawtile_proc1 [5] |
static const DrawIndustryAnimationStruct | _industry_anim_offs_toys [] |
static const uint8_t | _industry_anim_offs_toffee [] |
static const uint8_t | _industry_anim_offs_bubbles [] |
static const DrawIndustryCoordinates | _coal_plant_sparks [] |
Movement of the sparks , only used for Power Station. More... | |
Information about the behaviour of the default industry tiles.
Definition in file industry_land.h.
#define M | ( | s1, | |
p1, | |||
s2, | |||
p2, | |||
sx, | |||
sy, | |||
w, | |||
h, | |||
dz, | |||
p | |||
) | { { s1, p1 }, { s2, p2 }, sx, sy, w, h, dz, p } |
Macro to ease the declaration of the array.
s1 | sprite ID of ground sprite |
p1 | palette ID of ground sprite |
s2 | sprite ID of building sprite |
p2 | palette ID of building sprite |
sx | coordinate x of the sprite |
sy | coordinate y of the sprite |
w | width of the sprite |
h | height of the sprite |
dz | virtual height of the sprite |
p | this allows to specify a special drawing procedure. |
Definition at line 48 of file industry_land.h.
#define MD | ( | img1, | |
img2, | |||
img3 | |||
) | { (50 - img1 * 2), img1, img2, img3 } |
this is ONLY used for Toy Factory.
255 means no drawing
img1 | offset from base sprite SPR_IT_SUGAR_MINE_SIEVE |
img2 | offset from base sprite SPR_IT_SUGAR_MINE_CLOUDS |
img3 | offset from base sprite SPR_IT_SUGAR_MINE_PILE |
Definition at line 871 of file industry_land.h.
|
static |
Movement of the sparks , only used for Power Station.
Definition at line 948 of file industry_land.h.
|
static |
Definition at line 856 of file industry_land.h.
|
static |
Definition at line 938 of file industry_land.h.
|
static |
Definition at line 927 of file industry_land.h.