clear_land.h

Go to the documentation of this file.
00001 /* $Id: clear_land.h 23188 2011-11-11 18:01:41Z yexo $ */
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 SpriteID _landscape_clear_sprites_rough[8] = {
00013   SPR_FLAT_ROUGH_LAND,
00014   SPR_FLAT_ROUGH_LAND_1,
00015   SPR_FLAT_ROUGH_LAND_2,
00016   SPR_FLAT_ROUGH_LAND_3,
00017   SPR_FLAT_ROUGH_LAND_4,
00018   SPR_FLAT_ROUGH_LAND,
00019   SPR_FLAT_ROUGH_LAND_1,
00020   SPR_FLAT_ROUGH_LAND_2,
00021 };
00022 
00023 static const byte _fence_mod_by_tileh_sw[32] = {
00024   0, 2, 4, 0, 0, 2, 4, 0,
00025   0, 2, 4, 0, 0, 2, 4, 0,
00026   0, 2, 4, 0, 0, 2, 4, 4,
00027   0, 2, 4, 2, 0, 2, 4, 0,
00028 };
00029 
00030 static const byte _fence_mod_by_tileh_se[32] = {
00031   1, 1, 5, 5, 3, 3, 1, 1,
00032   1, 1, 5, 5, 3, 3, 1, 1,
00033   1, 1, 5, 5, 3, 3, 1, 5,
00034   1, 1, 5, 5, 3, 3, 3, 1,
00035 };
00036 
00037 static const byte _fence_mod_by_tileh_ne[32] = {
00038   0, 0, 0, 0, 4, 4, 4, 4,
00039   2, 2, 2, 2, 0, 0, 0, 0,
00040   0, 0, 0, 0, 4, 4, 4, 4,
00041   2, 2, 2, 2, 0, 2, 4, 0,
00042 };
00043 
00044 static const byte _fence_mod_by_tileh_nw[32] = {
00045   1, 5, 1, 5, 1, 5, 1, 5,
00046   3, 1, 3, 1, 3, 1, 3, 1,
00047   1, 5, 1, 5, 1, 5, 1, 5,
00048   3, 1, 3, 5, 3, 3, 3, 1,
00049 };
00050 
00051 
00052 static const SpriteID _clear_land_fence_sprites[7] = {
00053   SPR_HEDGE_BUSHES,
00054   SPR_HEDGE_BUSHES_WITH_GATE,
00055   SPR_HEDGE_FENCE,
00056   SPR_HEDGE_BLOOMBUSH_YELLOW,
00057   SPR_HEDGE_BLOOMBUSH_RED,
00058   SPR_HEDGE_STONE,
00059 };
00060 
00061 static const SpriteID _clear_land_sprites_farmland[16] = {
00062   SPR_FARMLAND_BARE,
00063   SPR_FARMLAND_STATE_1,
00064   SPR_FARMLAND_STATE_2,
00065   SPR_FARMLAND_STATE_3,
00066   SPR_FARMLAND_STATE_4,
00067   SPR_FARMLAND_STATE_5,
00068   SPR_FARMLAND_STATE_6,
00069   SPR_FARMLAND_STATE_7,
00070   SPR_FARMLAND_HAYPACKS,
00071 };
00072 
00073 static const SpriteID _clear_land_sprites_snow_desert[8] = {
00074   SPR_FLAT_1_QUART_SNOW_DESERT_TILE,
00075   SPR_FLAT_2_QUART_SNOW_DESERT_TILE,
00076   SPR_FLAT_3_QUART_SNOW_DESERT_TILE,
00077   SPR_FLAT_SNOW_DESERT_TILE,
00078 };