|
|
/* $Id$ */
|
|
|
|
|
|
/** @file town_land.h
|
|
|
*/
|
|
|
/** @file town_land.h */
|
|
|
|
|
|
enum {
|
|
|
HOUSE_TEMP_CHURCH = 0x03,
|
|
|
HOUSE_STADIUM = 0x14,
|
|
|
HOUSE_MODERN_STADIUM = 0x20,
|
|
|
HOUSE_ARCT_CHURCH = 0x3c,
|
|
@@ -13,22 +12,22 @@ enum {
|
|
|
HOUSE_TOY_CHURCH = 0x5b,
|
|
|
|
|
|
HOUSE_MAX = 110
|
|
|
};
|
|
|
|
|
|
/** Writes the data into the Town Tile Drawing Struct
|
|
|
* @param s1 The first sprite of the building, mostly the ground sprite
|
|
|
* @param s2 The second sprite of the building.
|
|
|
* @param sx The x-position of the sprite within the tile
|
|
|
* @param xy the y-position of the sprite within the tile
|
|
|
* @param w the width of the sprite
|
|
|
* @param h the height of the sprite
|
|
|
* @param dz the virtual height of the sprite
|
|
|
* @param p set to 1 if a lift is present
|
|
|
* @see DrawTownTileStruct
|
|
|
*/
|
|
|
* @param s1 The first sprite of the building, mostly the ground sprite
|
|
|
* @param s2 The second sprite of the building.
|
|
|
* @param sx The x-position of the sprite within the tile
|
|
|
* @param xy the y-position of the sprite within the tile
|
|
|
* @param w the width of the sprite
|
|
|
* @param h the height of the sprite
|
|
|
* @param dz the virtual height of the sprite
|
|
|
* @param p set to 1 if a lift is present
|
|
|
* @see DrawTownTileStruct
|
|
|
*/
|
|
|
#define M(s1, s2, sx, sy, w, h, dz, p) {s1, s2, sx, sy, w - 1, h - 1, dz, p}
|
|
|
|
|
|
static const DrawBuildingsTileStruct _town_draw_tile_data[] = {
|
|
|
M( 0xf54, 0x58d, 0, 0, 14, 14, 8, 0),
|
|
|
M( 0xf54, 0x58e, 0, 0, 14, 14, 60, 0),
|
|
|
M( 0xf54, 0x58f, 0, 0, 14, 14, 60, 0),
|
|
@@ -1925,26 +1924,26 @@ static const uint16 _housetype_flags[] =
|
|
|
0x800F, 0x800F, 0x801C, 0x801F, 0x0000, 0x801C, 0x8001, 0x8001,
|
|
|
0x801C, 0x801C, 0x801C, 0x801C, 0x801F, 0x801F,
|
|
|
};
|
|
|
assert_compile(lengthof(_housetype_flags) == HOUSE_MAX);
|
|
|
|
|
|
static const byte _housetype_extra_flags[] = {
|
|
|
0, 0, 0, 0,32,32, 0, 8,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0,16, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
16, 0, 0, 0, 0, 0, 0, 0,
|
|
|
16, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 8, 0, 8, 0, 0, 0,
|
|
|
0, 0, 4, 0, 4, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0, 0, 4,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 8, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0, 32, 32, 0, 8,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0, 16, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
16, 0, 0, 0, 0, 0, 0, 0,
|
|
|
16, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 8, 0, 8, 0, 0, 0,
|
|
|
0, 0, 4, 0, 4, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0, 0, 4,
|
|
|
0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
0, 0, 0, 8, 0, 0, 0, 0,
|
|
|
0, 0, 0, 0, 0, 0,
|
|
|
};
|
|
|
assert_compile(lengthof(_housetype_extra_flags) == HOUSE_MAX);
|
|
|
|
|
|
static const byte _housetype_population[] = {
|
|
|
187, 85, 40, 5, 220, 220, 30, 140,
|
|
|
0, 0, 0, 0, 0, 150, 95, 95,
|
|
@@ -2134,26 +2133,26 @@ static const HousetypeYear _housetype_ye
|
|
|
{ 0, MAX_YEAR },
|
|
|
{ 0, MAX_YEAR },
|
|
|
};
|
|
|
assert_compile(lengthof(_housetype_years) == HOUSE_MAX);
|
|
|
|
|
|
static const byte _housetype_cargo_passengers[] = {
|
|
|
8, 8, 8, 2, 10,10,4, 6,
|
|
|
6, 2, 2, 2, 2, 8, 6, 6,
|
|
|
6, 10,6, 6, 4, 4, 4, 4,
|
|
|
3, 3, 3, 7, 8, 6, 8, 8,
|
|
|
4, 4, 4, 4, 8, 3, 3, 8,
|
|
|
8, 8, 8, 8, 5, 5, 3, 3,
|
|
|
3, 3, 8, 8, 9, 9,10, 10,
|
|
|
2, 2, 3, 3, 2, 2, 3, 3,
|
|
|
6, 6, 6, 6, 6, 6, 7, 7,
|
|
|
9, 9, 7, 7, 7, 7, 3, 3,
|
|
|
3, 3, 6, 2, 3, 6, 6, 8,
|
|
|
8, 6, 8, 2, 6, 3, 3, 3,
|
|
|
3, 3, 8, 4, 4, 8, 3, 3,
|
|
|
8, 8, 8, 4, 3, 3,
|
|
|
8, 8, 8, 2, 10, 10, 4, 6,
|
|
|
6, 2, 2, 2, 2, 8, 6, 6,
|
|
|
6, 10, 6, 6, 4, 4, 4, 4,
|
|
|
3, 3, 3, 7, 8, 6, 8, 8,
|
|
|
4, 4, 4, 4, 8, 3, 3, 8,
|
|
|
8, 8, 8, 8, 5, 5, 3, 3,
|
|
|
3, 3, 8, 8, 9, 9, 10, 10,
|
|
|
2, 2, 3, 3, 2, 2, 3, 3,
|
|
|
6, 6, 6, 6, 6, 6, 7, 7,
|
|
|
9, 9, 7, 7, 7, 7, 3, 3,
|
|
|
3, 3, 6, 2, 3, 6, 6, 8,
|
|
|
8, 6, 8, 2, 6, 3, 3, 3,
|
|
|
3, 3, 8, 4, 4, 8, 3, 3,
|
|
|
8, 8, 8, 4, 3, 3,
|
|
|
};
|
|
|
assert_compile(lengthof(_housetype_cargo_passengers) == HOUSE_MAX);
|
|
|
|
|
|
static const byte _housetype_cargo_mail[] = {
|
|
|
3, 3, 3, 0, 4, 4, 1, 1,
|
|
|
1, 0, 0, 0, 0, 2, 2, 2,
|