summaryrefslogtreecommitdiff
path: root/src/water.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-10 12:45:34 +0000
committeralberth <alberth@openttd.org>2010-07-10 12:45:34 +0000
commit7e0e7fb0e58ab6c1cc2e6763e69f175f876575bf (patch)
treeb067aa7dfb26c7949e8a2824cc631d323c22163c /src/water.h
parent9060a7ac00075e506a9745356a674e55c0b53c2b (diff)
downloadopenttd-7e0e7fb0e58ab6c1cc2e6763e69f175f876575bf.tar.xz
(svn r20109) -Codechange: Make GetFloodingBehaviour() globally usable.
Diffstat (limited to 'src/water.h')
-rw-r--r--src/water.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/water.h b/src/water.h
index 62cfc37e2..db52600ee 100644
--- a/src/water.h
+++ b/src/water.h
@@ -16,6 +16,18 @@
#include "company_type.h"
#include "slope_type.h"
+/**
+ * Describes the behaviour of a tile during flooding.
+ */
+enum FloodingBehaviour {
+ FLOOD_NONE, ///< The tile does not flood neighboured tiles.
+ FLOOD_ACTIVE, ///< The tile floods neighboured tiles.
+ FLOOD_PASSIVE, ///< The tile does not actively flood neighboured tiles, but it prevents them from drying up.
+ FLOOD_DRYUP, ///< The tile drys up if it is not constantly flooded from neighboured tiles.
+};
+
+FloodingBehaviour GetFloodingBehaviour(TileIndex tile);
+
void TileLoop_Water(TileIndex tile);
bool FloodHalftile(TileIndex t);
void DoFloodTile(TileIndex target);