1 /*************************************************************************** 2 config.h - description 3 ------------------- 4 begin : Tue Feb 13 2001 5 copyright : (C) 2001 by Michael Speck 6 email : kulkanie@gmx.net 7 ***************************************************************************/ 8 9 /*************************************************************************** 10 * * 11 * This program is free software; you can redistribute it and/or modify * 12 * it under the terms of the GNU General Public License as published by * 13 * the Free Software Foundation; either version 2 of the License, or * 14 * (at your option) any later version. * 15 * * 16 ***************************************************************************/ 17 18 #ifndef __CONFIG_H 19 #define __CONFIG_H 20 21 /* stupid name similarity */ 22 #ifdef HAVE_CONFIG_H 23 # include <../config.h> 24 #endif 25 26 /* configure struct */ 27 typedef struct { 28 /* directory to save config and saved games */ 29 char dir_name[512]; 30 /* gfx options */ 31 int grid; /* hex grid */ 32 int tran; /* transparancy */ 33 int show_bar; /* show unit's life bar and icons */ 34 int width, height, fullscreen; 35 int anim_speed; /* scale animations by this factor: 1=normal, 2=doubled, ... */ 36 /* game options */ 37 int supply; /* units must supply */ 38 int weather; /* does weather have influence? */ 39 int fog_of_war; /* guess what? */ 40 int show_cpu_turn; 41 int deploy_turn; /* allow deployment */ 42 int purchase; /* disable predefined reinfs and allow purchase by prestige */ 43 int ai_debug; /* level of information about AI move */ 44 /* audio stuff */ 45 int sound_on; 46 int sound_volume; 47 int music_on; 48 int music_volume; 49 } Config; 50 51 /* check if config directory exists; if not create it and set config_dir */ 52 void check_config_dir_name(); 53 54 /* set config to default */ 55 void reset_config(); 56 57 /* load config */ 58 void load_config( ); 59 60 /* save config */ 61 void save_config( ); 62 63 #endif 64