Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #ifndef NEWGRF_INDUSTRYTILES_H
00013 #define NEWGRF_INDUSTRYTILES_H
00014
00015 #include "tile_cmd.h"
00016 #include "newgrf_animation_type.h"
00017 #include "newgrf_industries.h"
00018 #include "core/random_func.hpp"
00019
00020 bool DrawNewIndustryTile(TileInfo *ti, Industry *i, IndustryGfx gfx, const IndustryTileSpec *inds);
00021 uint16 GetIndustryTileCallback(CallbackID callback, uint32 param1, uint32 param2, IndustryGfx gfx_id, Industry *industry, TileIndex tile);
00022 CommandCost PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind_tile, const IndustryTileSpec *its, IndustryType type, IndustryGfx gfx, uint itspec_index, uint16 initial_random_bits, Owner founder, IndustryAvailabilityCallType creation_type);
00023
00024 void AnimateNewIndustryTile(TileIndex tile);
00025 bool StartStopIndustryTileAnimation(TileIndex tile, IndustryAnimationTrigger iat, uint32 random = Random());
00026 bool StartStopIndustryTileAnimation(const Industry *ind, IndustryAnimationTrigger iat);
00027
00028
00030 enum IndustryTileTrigger {
00031 INDTILE_TRIGGER_TILE_LOOP = 0x01,
00032 INDUSTRY_TRIGGER_INDUSTRY_TICK = 0x02,
00033 INDUSTRY_TRIGGER_RECEIVED_CARGO = 0x04,
00034 };
00035 void TriggerIndustryTile(TileIndex t, IndustryTileTrigger trigger);
00036 void TriggerIndustry(Industry *ind, IndustryTileTrigger trigger);
00037
00038 #endif