diff options
author | rubidium <rubidium@openttd.org> | 2007-11-11 17:56:37 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-11-11 17:56:37 +0000 |
commit | af5c2a785f11cc6c56813285fe0d1b09369b0acb (patch) | |
tree | f9e7187a01ac304ba4976cb42e34a137f6511115 /src/newgrf_industrytiles.h | |
parent | f6dda295496e642a04f212e8aa41cdfdf74a347d (diff) | |
download | openttd-af5c2a785f11cc6c56813285fe0d1b09369b0acb.tar.xz |
(svn r11410) -Codechange: implement random triggers for industries.
Diffstat (limited to 'src/newgrf_industrytiles.h')
-rw-r--r-- | src/newgrf_industrytiles.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/newgrf_industrytiles.h b/src/newgrf_industrytiles.h index 4a7794c62..b7394f284 100644 --- a/src/newgrf_industrytiles.h +++ b/src/newgrf_industrytiles.h @@ -21,4 +21,16 @@ void AnimateNewIndustryTile(TileIndex tile); bool StartStopIndustryTileAnimation(TileIndex tile, IndustryAnimationTrigger iat, uint32 random = Random()); bool StartStopIndustryTileAnimation(const Industry *ind, IndustryAnimationTrigger iat); + +enum IndustryTileTrigger { + /* The tile of the industry has been triggered during the tileloop. */ + INDTILE_TRIGGER_TILE_LOOP = 0x01, + /* The industry has been triggered via it's tick. */ + INDUSTRY_TRIGGER_INDUSTRY_TICK = 0x02, + /* Cargo has been delivered. */ + INDUSTRY_TRIGGER_RECEIVED_CARGO = 0x04, +}; +void TriggerIndustryTile(TileIndex t, IndustryTileTrigger trigger); +void TriggerIndustry(Industry *ind, IndustryTileTrigger trigger); + #endif /* NEWGRF_INDUSTRYTILES_H */ |