newgrf_generic.h
Go to the documentation of this file.00001
00002
00005 #ifndef NEWGRF_GENERIC_H
00006 #define NEWGRF_GENERIC_H
00007
00008 enum AIConstructionEvent {
00009 AICE_TRAIN_CHECK_RAIL_ENGINE = 0x00,
00010 AICE_TRAIN_CHECK_ELRAIL_ENGINE = 0x01,
00011 AICE_TRAIN_CHECK_MONORAIL_ENGINE = 0x02,
00012 AICE_TRAIN_CHECK_MAGLEV_ENGINE = 0x03,
00013 AICE_TRAIN_GET_RAIL_WAGON = 0x08,
00014 AICE_TRAIN_GET_ELRAIL_WAGON = 0x09,
00015 AICE_TRAIN_GET_MONORAIL_WAGON = 0x0A,
00016 AICE_TRAIN_GET_MAGLEV_WAGON = 0x0B,
00017 AICE_TRAIN_GET_RAILTYPE = 0x0F,
00018
00019 AICE_ROAD_CHECK_ENGINE = 0x00,
00020 AICE_ROAD_GET_FIRST_ENGINE = 0x01,
00021 AICE_ROAD_GET_NUMBER_ENGINES = 0x02,
00022
00023 AICE_SHIP_CHECK_ENGINE = 0x00,
00024 AICE_SHIP_GET_FIRST_ENGINE = 0x01,
00025 AICE_SHIP_GET_NUMBER_ENGINES = 0x02,
00026
00027 AICE_AIRCRAFT_CHECK_ENGINE = 0x00,
00028
00029 AICE_STATION_GET_STATION_ID = 0x00,
00030 };
00031
00032 void ResetGenericCallbacks();
00033 void AddGenericCallback(uint8 feature, const struct GRFFile *file, const struct SpriteGroup *group);
00034
00035 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 struct GRFFile **file);
00036
00037 #endif