src/newgrf_canal.h
changeset 6583 71d62b85d3ad
child 8360 3021c928de6c
equal deleted inserted replaced
6582:7ff39cd822b0 6583:71d62b85d3ad
       
     1 /* $Id$ */
       
     2 
       
     3 #ifndef NEWGRF_CANAL_H
       
     4 #define NEWGRF_CANAL_H
       
     5 
       
     6 /** List of different canal 'features'.
       
     7  * Each feature gets an entry in the canal spritegroup table */
       
     8 enum CanalFeature {
       
     9 	CF_WATERSLOPE,
       
    10 	CF_LOCKS,
       
    11 	CF_DIKES,
       
    12 	CF_ICON,
       
    13 	CF_DOCKS,
       
    14 	CF_END,
       
    15 };
       
    16 
       
    17 
       
    18 /** Table of canal 'feature' sprite groups */
       
    19 extern const SpriteGroup *_canal_sg[CF_END];
       
    20 
       
    21 
       
    22 /** Lookup the base sprite to use for a canal.
       
    23  * @param feature Which canal feature we want.
       
    24  * @param tile Tile index of canal, if appropriate.
       
    25  * @return Base sprite returned by GRF, or 0 if none.
       
    26  */
       
    27 SpriteID GetCanalSprite(CanalFeature feature, TileIndex tile);
       
    28 
       
    29 #endif /* NEWGRF_CANAL_H */