1 /* 2 * This code is released under the GNU General Public License. See COPYING for 3 * details. Copyright 2003 John Spray: spray_john@users.sourceforge.net 4 */ 5 6 7 #ifndef CONFIG_H 8 #define CONFIG_H 9 10 class Visual; 11 class SoundCore; 12 13 class Config{ 14 public: 15 Config(); 16 void Load(char* configfile); 17 void Dump(char* filename); 18 int ParseArgs(int argc,char* argv[]); 19 void Usage(); 20 void ConfigMenu(Visual* menuvisual,SoundCore* menusound); 21 void ConfigMenuRes(Visual* menuvisual); 22 int screenx; 23 int screeny; 24 int fullscreen; 25 float volume; 26 int verbose; 27 int actslow; 28 int bpp; 29 int skipmenu; 30 int drawfps; 31 int texscale; 32 int twoplayer; 33 float mousespeed; 34 struct{ 35 int turnleft; 36 int turnright; 37 int strafeleft; 38 int straferight; 39 int forward; 40 int back; 41 int firemissile; 42 int firecannon; 43 int camleft; 44 int camright; 45 int fullscreen; 46 int togglegrab; 47 } keys; 48 }; 49 50 #endif //CONFIG_H 51 52