OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
10 #ifndef NEWGRF_GENERIC_H
11 #define NEWGRF_GENERIC_H
uint32 TileIndex
The index/ID of a Tile.
static void AmbientSoundEffect(TileIndex tile)
Play an ambient sound effect for an empty tile.
static const IndustryType IT_AI_UNKNOWN
The AI has no specific industry in mind.
@ AICE_TRAIN_GET_RAIL_WAGON
Check if we should build an engine.
@ AICE_SHIP_CHECK_ENGINE
Check if we should build an engine.
void AddGenericCallback(uint8 feature, const GRFFile *file, const SpriteGroup *group)
Add a generic feature callback sprite group to the appropriate feature list.
@ AICE_STATION_GET_STATION_ID
Get a station ID to build.
uint16 GetAiPurchaseCallbackResult(uint8 feature, CargoID cargo_type, uint8 default_selection, IndustryType src_industry, IndustryType dst_industry, uint8 distance, AIConstructionEvent event, uint8 count, uint8 station_size, const GRFFile **file)
'Execute' an AI purchase selection callback
@ AICE_SHIP_GET_FIRST_ENGINE
Unused, we check all.
static bool HasGrfMiscBit(GrfMiscBit bit)
Check for grf miscellaneous bits.
@ AICE_TRAIN_GET_MAGLEV_WAGON
Check if we should build an engine.
AIConstructionEvent
AI events for asking the NewGRF for information.
@ AICE_TRAIN_CHECK_MONORAIL_ENGINE
Check if we should build an engine.
@ AICE_TRAIN_GET_MONORAIL_WAGON
Check if we should build an engine.
@ AICE_TRAIN_CHECK_MAGLEV_ENGINE
Check if we should build an engine.
@ AICE_ROAD_CHECK_ENGINE
Check if we should build an engine.
@ AICE_TRAIN_GET_RAILTYPE
Check if we should build a railtype.
@ AICE_TRAIN_CHECK_ELRAIL_ENGINE
Check if we should build an engine.
@ AICE_TRAIN_GET_ELRAIL_WAGON
Check if we should build an engine.
void ResetGenericCallbacks()
Reset all generic feature callback sprite groups.
@ AICE_TRAIN_CHECK_RAIL_ENGINE
Check if we should build an engine.
void AmbientSoundEffectCallback(TileIndex tile)
'Execute' the ambient sound effect callback.
static const IndustryType IT_AI_TOWN
The AI actually wants to transport to/from a town, not an industry.
byte CargoID
Cargo slots to indicate a cargo type within a game.
@ AICE_ROAD_GET_NUMBER_ENGINES
Unused, we check all.
@ AICE_SHIP_GET_NUMBER_ENGINES
Unused, we check all.
@ AICE_AIRCRAFT_CHECK_ENGINE
Check if we should build an engine.
Dynamic data of a loaded NewGRF.
@ AICE_ROAD_GET_FIRST_ENGINE
Unused, we check all.