diff options
author | rubidium <rubidium@openttd.org> | 2007-07-11 15:03:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-11 15:03:29 +0000 |
commit | 79d04412b051c0350e9885b6d94d56bf0d251037 (patch) | |
tree | 1722ab0a55cf1ae1d36b67ccd3be22083d15d653 /src/newgrf_industrytiles.h | |
parent | 8d4b7ac33b3447896b0d4e5f0bbb2548b445a2f1 (diff) | |
download | openttd-79d04412b051c0350e9885b6d94d56bf0d251037.tar.xz |
(svn r10508) -Codechange: allow customizable animation schemes 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 16321217b..91bfa97fa 100644 --- a/src/newgrf_industrytiles.h +++ b/src/newgrf_industrytiles.h @@ -5,8 +5,20 @@ #ifndef NEWGRF_INDUSTRYTILES_H #define NEWGRF_INDUSTRYTILES_H +enum IndustryAnimationTrigger { + IAT_CONSTRUCTION_STATE_CHANGE, + IAT_TILELOOP, + IAT_INDUSTRY_TICK, + IAT_INDUSTRY_RECEIVED_CARGO, + IAT_INDUSTRY_DISTRIBUTES_CARGO, +}; + bool DrawNewIndustryTile(TileInfo *ti, Industry *i, IndustryGfx gfx, const IndustryTileSpec *inds); uint16 GetIndustryTileCallback(uint16 callback, uint32 param1, uint32 param2, IndustryGfx gfx_id, Industry *industry, TileIndex tile); bool PerformIndustryTileSlopeCheck(TileIndex tile, const IndustryTileSpec *its, IndustryType type, IndustryGfx gfx); +void AnimateNewIndustryTile(TileIndex tile); +bool StartStopIndustryTileAnimation(TileIndex tile, IndustryAnimationTrigger iat, uint32 random = Random()); +bool StartStopIndustryTileAnimation(const Industry *ind, IndustryAnimationTrigger iat); + #endif /* NEWGRF_INDUSTRYTILES_H */ |