Mercurial > hg > openttd
view src/newgrf_canal.h @ 8506:85399f57c666 draft
(svn r12081) -Codechange: Rename table/roadveh.h to table/roadveh_movment.h
It is more descriptive name and it will not upset the generate script anymore
author | belugas <belugas@openttd.org> |
---|---|
date | Thu, 07 Feb 2008 17:01:06 +0000 |
parents | 2628bf7d5b77 |
children | d48433370037 |
line wrap: on
line source
/* $Id$ */ #ifndef NEWGRF_CANAL_H #define NEWGRF_CANAL_H /** List of different canal 'features'. * Each feature gets an entry in the canal spritegroup table */ enum CanalFeature { CF_WATERSLOPE, CF_LOCKS, CF_DIKES, CF_ICON, CF_DOCKS, CF_RIVER_SLOPE, CF_RIVER_EDGE, CF_END, }; struct WaterFeature { const SpriteGroup *group; uint8 callbackmask; uint8 flags; }; /** Table of canal 'feature' sprite groups */ extern WaterFeature _water_feature[CF_END]; /** Lookup the base sprite to use for a canal. * @param feature Which canal feature we want. * @param tile Tile index of canal, if appropriate. * @return Base sprite returned by GRF, or 0 if none. */ SpriteID GetCanalSprite(CanalFeature feature, TileIndex tile); #endif /* NEWGRF_CANAL_H */