newgrf_canal.h

Go to the documentation of this file.
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 
00017 enum CanalFeature {
00018   CF_WATERSLOPE,
00019   CF_LOCKS,
00020   CF_DIKES,
00021   CF_ICON,
00022   CF_DOCKS,
00023   CF_RIVER_SLOPE,
00024   CF_RIVER_EDGE,
00025   CF_END,
00026 };
00027 
00028 
00029 struct WaterFeature {
00030   const SpriteGroup *group;
00031   const GRFFile *grffile;   
00032   uint8 callback_mask;       
00033   uint8 flags;
00034 };
00035 
00036 
00038 extern WaterFeature _water_feature[CF_END];
00039 
00040 
00046 SpriteID GetCanalSprite(CanalFeature feature, TileIndex tile);
00047 
00048 #endif /* NEWGRF_CANAL_H */

Generated on Sat Dec 26 20:06:02 2009 for OpenTTD by  doxygen 1.5.6