# unmovable_land.h

Go to the documentation of this file.

    00001 /* $Id: unmovable_land.h 17596 2009-09-20 23:11:01Z smatz $ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
    00006  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
    00008  */
    00009
    00012 static const DrawTileSeqStruct _draw_tile_transmitterlighthouse_data[] = {
    00013   {   7,  7,  0,  2,  2, 70, {SPR_UNMOVABLE_TRANSMITTER, PAL_NONE}},
    00014   {   4,  4,  0,  7,  7, 61, {SPR_UNMOVABLE_LIGHTHOUSE, PAL_NONE}},
    00015 };
    00016
    00017 #define TILE_SEQ_LINE(sz, img) { 0, 0, 0, 16, 16, sz, {img, PAL_NONE} },
    00018 #define TILE_SEQ_END() { (int8)0x80, 0, 0, 0, 0, 0, {0, 0} }
    00019
    00020 static const DrawTileSeqStruct _unmovable_display_nothing[] = {
    00021   TILE_SEQ_END()
    00022 };
    00023
    00024 static const DrawTileSeqStruct _unmovable_display_datas_8[] = {
    00025   TILE_SEQ_LINE(20, SPR_MEDIUMHQ_NORTH_WALL | (1 << PALETTE_MODIFIER_COLOUR))
    00026   TILE_SEQ_END()
    00027 };
    00028
    00029 static const DrawTileSeqStruct _unmovable_display_datas_9[] = {
    00030   TILE_SEQ_LINE(20, SPR_MEDIUMHQ_EAST_WALL  | (1 << PALETTE_MODIFIER_COLOUR))
    00031   TILE_SEQ_END()
    00032 };
    00033
    00034 static const DrawTileSeqStruct _unmovable_display_datas_10[] = {
    00035   TILE_SEQ_LINE(20, SPR_MEDIUMHQ_WEST_WALL  | (1 << PALETTE_MODIFIER_COLOUR))
    00036   TILE_SEQ_END()
    00037 };
    00038
    00039 static const DrawTileSeqStruct _unmovable_display_datas_12[] = {
    00040   TILE_SEQ_LINE(50, SPR_LARGEHQ_NORTH_BUILD | (1 << PALETTE_MODIFIER_COLOUR))
    00041   TILE_SEQ_END()
    00042 };
    00043
    00044 static const DrawTileSeqStruct _unmovable_display_datas_13[] = {
    00045   TILE_SEQ_LINE(50, SPR_LARGEHQ_EAST_BUILD  | (1 << PALETTE_MODIFIER_COLOUR))
    00046   TILE_SEQ_END()
    00047 };
    00048
    00049 static const DrawTileSeqStruct _unmovable_display_datas_14[] = {
    00050   TILE_SEQ_LINE(50, SPR_LARGEHQ_WEST_BUILD  | (1 << PALETTE_MODIFIER_COLOUR))
    00051   TILE_SEQ_END()
    00052 };
    00053
    00054 static const DrawTileSeqStruct _unmovable_display_datas_16[] = {
    00055   TILE_SEQ_LINE(60, SPR_HUGEHQ_NORTH_BUILD  | (1 << PALETTE_MODIFIER_COLOUR))
    00056   TILE_SEQ_END()
    00057 };
    00058
    00059 static const DrawTileSeqStruct _unmovable_display_datas_17[] = {
    00060   TILE_SEQ_LINE(60, SPR_HUGEHQ_EAST_BUILD   | (1 << PALETTE_MODIFIER_COLOUR))
    00061   TILE_SEQ_END()
    00062 };
    00063
    00064 static const DrawTileSeqStruct _unmovable_display_datas_18[] = {
    00065   TILE_SEQ_LINE(60, SPR_HUGEHQ_WEST_BUILD   | (1 << PALETTE_MODIFIER_COLOUR))
    00066   TILE_SEQ_END()
    00067 };
    00068
    00069 #undef TILE_SEQ_LINE
    00070 #undef TILE_SEQ_END
    00071
    00072 #define TILE_SPRITE_LINE(img, dtss) { {img | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE}, dtss },
    00073
    00074 static const DrawTileSprites _unmovable_display_datas[] = {
    00075   TILE_SPRITE_LINE(SPR_TINYHQ_NORTH,         _unmovable_display_nothing)
    00076   TILE_SPRITE_LINE(SPR_TINYHQ_EAST,          _unmovable_display_nothing)
    00077   TILE_SPRITE_LINE(SPR_TINYHQ_WEST,          _unmovable_display_nothing)
    00078   TILE_SPRITE_LINE(SPR_TINYHQ_SOUTH,         _unmovable_display_nothing)
    00079
    00080   TILE_SPRITE_LINE(SPR_SMALLHQ_NORTH,        _unmovable_display_nothing)
    00081   TILE_SPRITE_LINE(SPR_SMALLHQ_EAST,         _unmovable_display_nothing)
    00082   TILE_SPRITE_LINE(SPR_SMALLHQ_WEST,         _unmovable_display_nothing)
    00083   TILE_SPRITE_LINE(SPR_SMALLHQ_SOUTH,        _unmovable_display_nothing)
    00084
    00085   TILE_SPRITE_LINE(SPR_MEDIUMHQ_NORTH,       _unmovable_display_datas_8)
    00086   TILE_SPRITE_LINE(SPR_MEDIUMHQ_EAST,        _unmovable_display_datas_9)
    00087   TILE_SPRITE_LINE(SPR_MEDIUMHQ_WEST,        _unmovable_display_datas_10)
    00088   TILE_SPRITE_LINE(SPR_MEDIUMHQ_SOUTH,       _unmovable_display_nothing)
    00089
    00090   TILE_SPRITE_LINE(SPR_LARGEHQ_NORTH_GROUND, _unmovable_display_datas_12)
    00091   TILE_SPRITE_LINE(SPR_LARGEHQ_EAST_GROUND,  _unmovable_display_datas_13)
    00092   TILE_SPRITE_LINE(SPR_LARGEHQ_WEST_GROUND,  _unmovable_display_datas_14)
    00093   TILE_SPRITE_LINE(SPR_LARGEHQ_SOUTH,        _unmovable_display_nothing)
    00094
    00095   TILE_SPRITE_LINE(SPR_HUGEHQ_NORTH_GROUND,  _unmovable_display_datas_16)
    00096   TILE_SPRITE_LINE(SPR_HUGEHQ_EAST_GROUND,   _unmovable_display_datas_17)
    00097   TILE_SPRITE_LINE(SPR_HUGEHQ_WEST_GROUND,   _unmovable_display_datas_18)
    00098   TILE_SPRITE_LINE(SPR_HUGEHQ_SOUTH,         _unmovable_display_nothing)
    00099 };
    00100
    00101 #undef TILE_SPRITE_LINE
    00102
    00103 static const UnmovableSpec _original_unmovable[] = {
    00104   {STR_LAI_UNMOVABLE_DESCRIPTION_TRANSMITTER,          1,   1},
    00105   {STR_LAI_UNMOVABLE_DESCRIPTION_LIGHTHOUSE,           1,   1},
    00106   {STR_TOWN_BUILDING_NAME_STATUE_1,                    1,   1},
    00107   {STR_LAI_UNMOVABLE_DESCRIPTION_COMPANY_OWNED_LAND,   10,  2},
    00108   {STR_LAI_UNMOVABLE_DESCRIPTION_COMPANY_HEADQUARTERS, 1,   1},
    00109 };