newgrf_canal.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef NEWGRF_CANAL_H
00013 #define NEWGRF_CANAL_H
00014
00015 #include "gfx_type.h"
00016 #include "tile_type.h"
00017 #include "newgrf_generic.h"
00018
00023 enum CanalFeature {
00024 CF_WATERSLOPE,
00025 CF_LOCKS,
00026 CF_DIKES,
00027 CF_ICON,
00028 CF_DOCKS,
00029 CF_RIVER_SLOPE,
00030 CF_RIVER_EDGE,
00031 CF_END,
00032 };
00033
00035 enum CanalFeatureFlag {
00036 CFF_HAS_FLAT_SPRITE = 0,
00037 };
00038
00040 struct WaterFeature {
00041 const SpriteGroup *group;
00042 const GRFFile *grffile;
00043 uint8 callback_mask;
00044 uint8 flags;
00045 };
00046
00047
00049 extern WaterFeature _water_feature[CF_END];
00050
00051
00052 SpriteID GetCanalSprite(CanalFeature feature, TileIndex tile);
00053
00054 uint GetCanalSpriteOffset(CanalFeature feature, TileIndex tile, uint cur_offset);
00055
00056 #endif