src/variables.h
changeset 8119 52b48108425a
parent 8116 8da76dcb3287
child 8121 3bc6351e7369
equal deleted inserted replaced
8118:fa5fe5491657 8119:52b48108425a
     8 #include "yapf/yapf_settings.h"
     8 #include "yapf/yapf_settings.h"
     9 
     9 
    10 /* ********* START OF SAVE REGION */
    10 /* ********* START OF SAVE REGION */
    11 
    11 
    12 #include "gfx.h"
    12 #include "gfx.h"
    13 
       
    14 VARDEF Money  _cargo_payment_rates[NUM_CARGO];
       
    15 VARDEF uint16 _cargo_payment_rates_frac[NUM_CARGO];
       
    16 
    13 
    17 struct GameOptions {
    14 struct GameOptions {
    18 	GameDifficulty diff;
    15 	GameDifficulty diff;
    19 	byte diff_level;
    16 	byte diff_level;
    20 	byte currency;
    17 	byte currency;
    36 /* Pointer to one of the two _opt OR _opt_newgame structs */
    33 /* Pointer to one of the two _opt OR _opt_newgame structs */
    37 VARDEF GameOptions *_opt_ptr;
    34 VARDEF GameOptions *_opt_ptr;
    38 
    35 
    39 /* Amount of game ticks */
    36 /* Amount of game ticks */
    40 VARDEF uint16 _tick_counter;
    37 VARDEF uint16 _tick_counter;
    41 
       
    42 /* This one is not used anymore. */
       
    43 VARDEF VehicleID _vehicle_id_ctr_day;
       
    44 
    38 
    45 /* Skip aging of cargo? */
    39 /* Skip aging of cargo? */
    46 VARDEF byte _age_cargo_skip_counter;
    40 VARDEF byte _age_cargo_skip_counter;
    47 
    41 
    48 /* Position in tile loop */
    42 /* Position in tile loop */
   291 VARDEF int _caret_timer;
   285 VARDEF int _caret_timer;
   292 VARDEF uint32 _news_display_opt;
   286 VARDEF uint32 _news_display_opt;
   293 VARDEF bool _news_ticker_sound;
   287 VARDEF bool _news_ticker_sound;
   294 
   288 
   295 VARDEF StringID _error_message;
   289 VARDEF StringID _error_message;
   296 VARDEF Money _additional_cash_required;
       
   297 
   290 
   298 VARDEF bool _rightclick_emulate;
   291 VARDEF bool _rightclick_emulate;
   299 
   292 
   300 VARDEF PlayerFace _player_face; ///< for player face storage in openttd.cfg
   293 VARDEF PlayerFace _player_face; ///< for player face storage in openttd.cfg
   301 
   294 
   315 /* Used when switching from the intro menu. */
   308 /* Used when switching from the intro menu. */
   316 VARDEF byte _switch_mode;
   309 VARDEF byte _switch_mode;
   317 VARDEF StringID _switch_mode_errorstr;
   310 VARDEF StringID _switch_mode_errorstr;
   318 VARDEF SmallFiosItem _file_to_saveload;
   311 VARDEF SmallFiosItem _file_to_saveload;
   319 
   312 
   320 
       
   321 
       
   322 VARDEF Vehicle *_place_clicked_vehicle;
       
   323 
       
   324 VARDEF char _ini_videodriver[32], _ini_musicdriver[32], _ini_sounddriver[32], _ini_blitter[32];
   313 VARDEF char _ini_videodriver[32], _ini_musicdriver[32], _ini_sounddriver[32], _ini_blitter[32];
   325 
   314 
   326 VARDEF int _num_resolutions;
   315 VARDEF int _num_resolutions;
   327 VARDEF uint16 _resolutions[32][2];
   316 VARDEF uint16 _resolutions[32][2];
   328 VARDEF uint16 _cur_resolution[2];
   317 VARDEF uint16 _cur_resolution[2];
   337 #define SET_EXPENSES_TYPE(x) _yearly_expenses_type = x;
   326 #define SET_EXPENSES_TYPE(x) _yearly_expenses_type = x;
   338 
   327 
   339 /* landscape.cpp */
   328 /* landscape.cpp */
   340 extern const byte _tileh_to_sprite[32];
   329 extern const byte _tileh_to_sprite[32];
   341 
   330 
   342 extern const TileTypeProcs * const _tile_type_procs[16];
       
   343 
       
   344 extern bool _draw_bounding_boxes;
   331 extern bool _draw_bounding_boxes;
   345 
   332 
   346 /* misc */
   333 /* misc */
   347 VARDEF char _screenshot_name[128];
   334 VARDEF char _screenshot_name[128];
   348 VARDEF byte _vehicle_design_names;
   335 VARDEF byte _vehicle_design_names;