10 #ifndef NEWGRF_INDUSTRYTILES_H 11 #define NEWGRF_INDUSTRYTILES_H 34 uint32
GetVariable(byte variable, uint32 parameter,
bool *available)
const override;
Owner
Enum for all companies/owners.
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.
CommandCost PerformIndustryTileSlopeCheck(TileIndex ind_base_tile, TileIndex ind_tile, const IndustryTileSpec *its, IndustryType type, IndustryGfx gfx, size_t layout_index, uint16 initial_random_bits, Owner founder, IndustryAvailabilityCallType creation_type)
Check the slope of a tile of a new industry.
ResolverObject & ro
Surrounding resolver object.
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.
virtual ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0)
Get a resolver for the scope.
Common return value for all commands.
ScopeResolver * GetScope(VarSpriteGroupScope scope=VSG_SCOPE_SELF, byte relative=0) override
Get a resolver for the scope.
Pseudo random number generator.
uint32 GetRandomBits() const override
Get a few random bits.
Resolver for industry scopes.
Resolver for industry tiles.
uint32 GetTriggers() const override
Get the triggers.
IndustryTileTrigger
Available industry tile triggers.
uint32 GetVariable(byte variable, uint32 parameter, bool *available) const override
Get a variable value.
void TriggerIndustry(Industry *ind, IndustryTileTrigger trigger)
Trigger a random trigger for all industry tiles.
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.
The tile of the industry has been triggered during the tileloop.
void TriggerIndustryTile(TileIndex t, IndustryTileTrigger trigger)
Trigger a random trigger for a single industry tile.
The industry has been triggered via its tick.