belugas@7331: /* $Id$ */ belugas@7331: belugas@7331: /** @file newgrf_industries.h */ belugas@7331: belugas@7331: #ifndef NEWGRF_INDUSTRIES_H belugas@7331: #define NEWGRF_INDUSTRIES_H belugas@7331: belugas@7331: #include "industry.h" belugas@7331: #include "newgrf_spritegroup.h" belugas@7331: belugas@7380: /* in newgrf_industry.cpp */ belugas@7331: uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available); rubidium@7823: uint16 GetIndustryCallback(CallbackID callback, uint32 param1, uint32 param2, Industry *industry, IndustryType type, TileIndex tile); belugas@7364: uint32 GetIndustryIDAtOffset(TileIndex new_tile, TileIndex old_tile, const Industry *i); rubidium@7664: void IndustryProductionCallback(Industry *ind, int reason); rubidium@7703: bool CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uint itspec_index); belugas@7756: bool CheckIfCallBackAllowsAvailability(IndustryType type, IndustryAvailabilityCallType creation_type); belugas@7331: rubidium@7729: IndustryType MapNewGRFIndustryType(IndustryType grf_type, uint32 grf_id); rubidium@7729: belugas@7380: /* in newgrf_industrytiles.cpp*/ belugas@7380: uint32 IndustryTileGetRandomBits(const ResolverObject *object); belugas@7380: uint32 IndustryTileGetTriggers(const ResolverObject *object); belugas@7380: void IndustryTileSetTriggers(const ResolverObject *object, int triggers); belugas@7380: rubidium@7730: uint32 GetNearbyIndustryTileInformation(byte parameter, TileIndex tile, IndustryID index); rubidium@7730: belugas@7331: #endif /* NEWGRF_INDUSTRIES_H */