12 #ifndef NEWGRF_INDUSTRYTILES_H 13 #define NEWGRF_INDUSTRYTILES_H 36 uint32
GetVariable(byte variable, uint32 parameter,
bool *available)
const;
Interface to query and set values specific to a single VarSpriteGroupScope (action 2 scope)...
Tile information, used while rendering the tile.
IndustryAnimationTrigger
Animation triggers of the industries.
Resolver for the industry tiles scope.
ResolverObject & ro
Surrounding resolver object.
ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
Cargo has been delivered.
Functions for NewGRF industries.
Interface for SpriteGroup-s to access the gamestate.
Definitions related to NewGRF animation.
Defines the internal data of a functional industry.
Set when using the callback resolve system, but not to resolve a callback.
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)
Check the slope of a tile of a new industry.
virtual ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
Common return value for all commands.
Pseudo random number generator.
Resolver for industry scopes.
Resolver for industry tiles.
IndustryTileTrigger
Available industry tile triggers.
uint32 GetRandomBits() const
Get a few random bits.
void TriggerIndustry(Industry *ind, IndustryTileTrigger trigger)
Trigger a random trigger for all industry tiles.
uint32 GetVariable(byte variable, uint32 parameter, bool *available) const
Get a variable value.
IndustryTileScopeResolver indtile_scope
Scope resolver for the industry tile.
IndustryAvailabilityCallType
From where has callback CBID_INDUSTRY_PROBABILITY been called.
Industry * industry
Industry owning the tiles.
IndustriesScopeResolver ind_scope
Scope resolver for the industry owning the tile.
TileIndex tile
Tile being resolved.
uint32 TileIndex
The index/ID of a Tile.
Related object of the resolved one.
IndustryTileScopeResolver(ResolverObject &ro, Industry *industry, TileIndex tile)
Constructor of the scope resolver for the industry tile.
CallbackID
List of implemented NewGRF callbacks.
Defines the data structure of each individual tile of an industry.
Owner
Enum for all companies/owners.
The tile of the industry has been triggered during the tileloop.
uint32 GetTriggers() const
Get the triggers.
void TriggerIndustryTile(TileIndex t, IndustryTileTrigger trigger)
Trigger a random trigger for a single industry tile.
The industry has been triggered via its tick.