src/engine.h
branchnoai
changeset 9601 b499fdd106d5
parent 6585 7da94b26498a
child 9620 31e38d28a0af
equal deleted inserted replaced
9600:59cc173953ae 9601:b499fdd106d5
    88  */
    88  */
    89 struct EngineInfo {
    89 struct EngineInfo {
    90 	Date base_intro;
    90 	Date base_intro;
    91 	Year lifelength;
    91 	Year lifelength;
    92 	Year base_life;
    92 	Year base_life;
    93 	byte unk2;         ///< Carriages have the highest bit set in this one
    93 	byte unk2;         ///< flag for carriage(bit 7) and decay speed(bits0..6)
    94 	byte load_amount;
    94 	byte load_amount;
    95 	byte climates;
    95 	byte climates;
    96 	uint32 refit_mask;
    96 	uint32 refit_mask;
    97 	byte refit_cost;
    97 	byte refit_cost;
    98 	byte misc_flags;
    98 	byte misc_flags;
   151 
   151 
   152 void LoadCustomEngineNames();
   152 void LoadCustomEngineNames();
   153 void DeleteCustomEngineNames();
   153 void DeleteCustomEngineNames();
   154 
   154 
   155 bool IsEngineBuildable(EngineID engine, byte type, PlayerID player);
   155 bool IsEngineBuildable(EngineID engine, byte type, PlayerID player);
       
   156 CargoID GetEngineCargoType(EngineID engine);
   156 
   157 
   157 enum {
   158 enum {
   158 	NUM_NORMAL_RAIL_ENGINES = 54,
   159 	NUM_NORMAL_RAIL_ENGINES = 54,
   159 	NUM_MONORAIL_ENGINES    = 30,
   160 	NUM_MONORAIL_ENGINES    = 30,
   160 	NUM_MAGLEV_ENGINES      = 32,
   161 	NUM_MAGLEV_ENGINES      = 32,
   293  */
   294  */
   294 typedef EngineRenew* EngineRenewList;
   295 typedef EngineRenew* EngineRenewList;
   295 
   296 
   296 /**
   297 /**
   297  * Remove all engine replacement settings for the player.
   298  * Remove all engine replacement settings for the player.
   298  * @param  er The renewlist for a given player.
   299  * @param  erl The renewlist for a given player.
   299  * @return The new renewlist for the player.
   300  * @return The new renewlist for the player.
   300  */
   301  */
   301 void RemoveAllEngineReplacement(EngineRenewList* erl);
   302 void RemoveAllEngineReplacement(EngineRenewList* erl);
   302 
   303 
   303 /**
   304 /**