src/newgrf_industrytiles.h
changeset 7860 5cdd0d914013
parent 7662 b9da9d79a9a9
child 9111 48ce04029fe4
equal deleted inserted replaced
7859:5595fe36e31b 7860:5cdd0d914013
    19 
    19 
    20 void AnimateNewIndustryTile(TileIndex tile);
    20 void AnimateNewIndustryTile(TileIndex tile);
    21 bool StartStopIndustryTileAnimation(TileIndex tile, IndustryAnimationTrigger iat, uint32 random = Random());
    21 bool StartStopIndustryTileAnimation(TileIndex tile, IndustryAnimationTrigger iat, uint32 random = Random());
    22 bool StartStopIndustryTileAnimation(const Industry *ind, IndustryAnimationTrigger iat);
    22 bool StartStopIndustryTileAnimation(const Industry *ind, IndustryAnimationTrigger iat);
    23 
    23 
       
    24 
       
    25 enum IndustryTileTrigger {
       
    26 	/* The tile of the industry has been triggered during the tileloop. */
       
    27 	INDTILE_TRIGGER_TILE_LOOP       = 0x01,
       
    28 	/* The industry has been triggered via it's tick. */
       
    29 	INDUSTRY_TRIGGER_INDUSTRY_TICK  = 0x02,
       
    30 	/* Cargo has been delivered. */
       
    31 	INDUSTRY_TRIGGER_RECEIVED_CARGO = 0x04,
       
    32 };
       
    33 void TriggerIndustryTile(TileIndex t, IndustryTileTrigger trigger);
       
    34 void TriggerIndustry(Industry *ind, IndustryTileTrigger trigger);
       
    35 
    24 #endif /* NEWGRF_INDUSTRYTILES_H */
    36 #endif /* NEWGRF_INDUSTRYTILES_H */