1 #ifndef SETTINGS_H
2 #define SETTINGS_H
3 
4 /*
5  * SettingsCache - A Structure for storing lua settings during play to
6  * avoid the overhead of fetching from lua repeatedly. Values should be
7  * considered and const as they are never written back out to lua.
8  */
9 typedef struct SettingsCache {
10   int use_stencil;
11   int show_scores;
12   int show_ai_status;
13   int ai_level;
14   int show_fps;
15 	int show_console;
16   int softwareRendering;
17   int show_floor_texture;
18   int line_spacing;
19   int antialias_lines;
20   int show_decals;
21   int alpha_trails;
22   int turn_cycle;
23   int light_cycles;
24   int lod;
25   float fov;
26   int stretch_textures;
27   int show_skybox;
28   int show_recognizer;
29   int show_impact;
30   int show_glow;
31   int show_wall;
32   int fast_finish;
33   int playMusic;
34   int playEffects;
35   int camType;
36   float znear;
37   float clear_color[4];
38 	float map_ratio_w, map_ratio_h;
39 } SettingsCache;
40 
41 
42 extern int isSetting(const char *name);
43 extern float getSettingf(const char *name);
44 extern int getSettingi(const char *name);
45 extern float getVideoSettingf(const char *name);
46 extern int getVideoSettingi(const char *name);
47 
48 extern void setSettingf(const char *name, float f);
49 extern void setSettingi(const char *name, int i);
50 
51 #endif
52