00001 /* $Id$ */ 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 #ifndef NEWGRF_CANAL_H 00013 #define NEWGRF_CANAL_H 00014 00015 #include "newgrf.h" 00016 #include "tile_type.h" 00017 00019 enum CanalFeatureFlag { 00020 CFF_HAS_FLAT_SPRITE = 0, 00021 }; 00022 00024 struct WaterFeature { 00025 const SpriteGroup *group; 00026 const GRFFile *grffile; 00027 uint8 callback_mask; 00028 uint8 flags; 00029 }; 00030 00031 00033 extern WaterFeature _water_feature[CF_END]; 00034 00035 00036 SpriteID GetCanalSprite(CanalFeature feature, TileIndex tile); 00037 00038 uint GetCanalSpriteOffset(CanalFeature feature, TileIndex tile, uint cur_offset); 00039 00040 #endif /* NEWGRF_CANAL_H */