Files
@ r9334:6d079081ec24
Branch filter:
Location: cpp/openttd-patchpack/source/src/newgrf_canal.h - annotation
r9334:6d079081ec24
822 B
text/x-c
(svn r13226) -Feature: Allow to have more than only two airports per town. The number of airports is now controlled by the noise each of them generates, the distance from town's center and how tolerant the town is.
Initial concept : TTDPatch (moreairpots), Initial code : Pasky
Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
Initial concept : TTDPatch (moreairpots), Initial code : Pasky
Thanks to BigBB (help coding), Smatz Skidd13 and frosch for bugcatches and advices
r6583:63b4cb964287 r6583:63b4cb964287 r9111:983de9c5a848 r9111:983de9c5a848 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r8360:4a4998989c92 r8360:4a4998989c92 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r8372:59d73d58fc53 r8372:59d73d58fc53 r8372:59d73d58fc53 r8372:59d73d58fc53 r8372:59d73d58fc53 r8372:59d73d58fc53 r8372:59d73d58fc53 r6583:63b4cb964287 r8372:59d73d58fc53 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 r6583:63b4cb964287 | /* $Id$ */
/** @file newgrf_canal.h Handling of NewGRF canals. */
#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 */
|