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... | |
Defines | |
#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. | |
#define | MD(img1, img2, img3) { (50 - img1 * 2), img1, img2, img3 } |
this is ONLY used for Toy Factory. | |
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 byte | _industry_anim_offs_toffee [] |
static const byte | _industry_anim_offs_bubbles [] |
static const DrawIndustryCoordinates | _coal_plant_sparks [] |
Movement of the sparks , only used for Power Station. |
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 50 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 873 of file industry_land.h.
const DrawIndustryCoordinates _coal_plant_sparks[] [static] |
{ {11, 23}, {11, 11}, {14, 6}, {13, 3}, {18, 1}, {15, 0}, }
Movement of the sparks , only used for Power Station.
Definition at line 950 of file industry_land.h.
const DrawIndustryCoordinates _drawtile_proc1[5] [static] |
{ {22, 73}, {17, 70}, {14, 69}, {10, 66}, { 8, 41}, }
Definition at line 858 of file industry_land.h.
const byte _industry_anim_offs_bubbles[] [static] |
{ 68, 69, 71, 74, 77, 80, 83, 85, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, }
Definition at line 940 of file industry_land.h.
const byte _industry_anim_offs_toffee[] [static] |
{ 255, 0, 0, 0, 2, 4, 6, 8, 10, 9, 7, 5, 3, 1, 255, 0, 0, 0, 2, 4, 6, 8, 10, 9, 7, 5, 3, 1, 255, 0, 0, 0, 2, 4, 6, 8, 10, 9, 7, 5, 3, 1, 255, 0, 0, 0, 2, 4, 6, 8, 10, 9, 7, 5, 3, 1, 255, 0, 0, 0, 2, 4, 6, 8, 10, 9, 7, 5, 3, 1 }
Definition at line 929 of file industry_land.h.