OpenTTD Source 20241224-master-gee860a5c8e
newgrf_canal.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
7
10#ifndef NEWGRF_CANAL_H
11#define NEWGRF_CANAL_H
12
13#include "newgrf.h"
14#include "tile_type.h"
15
20
25 uint8_t callback_mask;
26 uint8_t flags;
27};
28
29
31extern WaterFeature _water_feature[CF_END];
32
33
35
36uint GetCanalSpriteOffset(CanalFeature feature, TileIndex tile, uint cur_offset);
37
38#endif /* NEWGRF_CANAL_H */
uint32_t SpriteID
The number of a sprite, without mapping bits and colourtables.
Definition gfx_type.h:18
Base for the NewGRF implementation.
CanalFeature
List of different canal 'features'.
Definition newgrf.h:26
CanalFeatureFlag
Flags controlling the display of canals.
@ CFF_HAS_FLAT_SPRITE
Additional flat ground sprite in the beginning.
uint GetCanalSpriteOffset(CanalFeature feature, TileIndex tile, uint cur_offset)
Get the new sprite offset for a water tile.
WaterFeature _water_feature[CF_END]
Table of canal 'feature' sprite groups.
SpriteID GetCanalSprite(CanalFeature feature, TileIndex tile)
Lookup the base sprite to use for a canal.
Dynamic data of a loaded NewGRF.
Definition newgrf.h:108
Information about a water feature.
uint8_t callback_mask
Bitmask of canal callbacks that have to be called.
const SpriteGroup * group
Sprite group to start resolving.
const GRFFile * grffile
NewGRF where 'group' belongs to.
uint8_t flags
Flags controlling display.
Types related to tiles.