forked from mirror/OpenTTD
(svn r20109) -Codechange: Make GetFloodingBehaviour() globally usable.
This commit is contained in:
12
src/water.h
12
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);
|
||||
|
Reference in New Issue
Block a user