summaryrefslogtreecommitdiff
path: root/src/newgrf_house.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-11-11 17:58:05 +0000
committerrubidium <rubidium@openttd.org>2007-11-11 17:58:05 +0000
commit9758a765125ff65930eb8ccf96657947b45a785c (patch)
tree6852036bc3489d0796a507cc83f6f16cd75f86ab /src/newgrf_house.h
parentaf5c2a785f11cc6c56813285fe0d1b09369b0acb (diff)
downloadopenttd-9758a765125ff65930eb8ccf96657947b45a785c.tar.xz
(svn r11411) -Codechange: implement random triggers for houses.
Diffstat (limited to 'src/newgrf_house.h')
-rw-r--r--src/newgrf_house.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/newgrf_house.h b/src/newgrf_house.h
index 821eff04c..27a5672fa 100644
--- a/src/newgrf_house.h
+++ b/src/newgrf_house.h
@@ -45,4 +45,15 @@ bool CanDeleteHouse(TileIndex tile);
bool NewHouseTileLoop(TileIndex tile);
+enum HouseTrigger {
+ /* The tile of the house has been triggered during the tileloop. */
+ HOUSE_TRIGGER_TILE_LOOP = 0x01,
+ /*
+ * The top tile of a (multitile) building has been triggered during and all
+ * the tileloop other tiles of the same building get the same random value.
+ */
+ HOUSE_TRIGGER_TILE_LOOP_TOP = 0x02,
+};
+void TriggerHouse(TileIndex t, HouseTrigger trigger);
+
#endif /* NEWGRF_HOUSE_H */