From e109773636d2c6514ae7ece6a3e826e0a2da885e Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 6 May 2007 18:14:33 +0000 Subject: (svn r9797) -Feature: [NewGRF] Add action 1, 2 and 3 support for canals. --- src/newgrf_canal.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/newgrf_canal.h (limited to 'src/newgrf_canal.h') diff --git a/src/newgrf_canal.h b/src/newgrf_canal.h new file mode 100644 index 000000000..23fb3a9a8 --- /dev/null +++ b/src/newgrf_canal.h @@ -0,0 +1,29 @@ +/* $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_END, +}; + + +/** Table of canal 'feature' sprite groups */ +extern const SpriteGroup *_canal_sg[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 */ -- cgit v1.2.3-54-g00ecf