equal
deleted
inserted
replaced
|
1 #ifndef CONFIGURATION_HH |
|
2 #define CONFIGURATION_HH |
|
3 |
|
4 /** |
|
5 * @file |
|
6 * |
|
7 * Various classes/modules have their own configuration structures, which are defined here |
|
8 * |
|
9 * XXX: rename to "Settings" to distinguish from Config/config? |
|
10 */ |
|
11 |
|
12 #include "Types.hh" |
|
13 #include "Config.hh" |
|
14 |
|
15 /** |
|
16 * Terrain configuration |
|
17 */ |
|
18 struct TerrainConfig { |
|
19 /** Size of the terrain field*/ |
|
20 PixelDimensions dimensions; |
|
21 |
|
22 /** Set to nonzero to generate random map */ |
|
23 int random_seed; |
|
24 |
|
25 /** Defaults */ |
|
26 TerrainConfig (void) : dimensions(TERRAIN_WIDTH, TERRAIN_HEIGHT), random_seed(TERRAIN_RANDOM_SEED) { } |
|
27 }; |
|
28 |
|
29 /** |
|
30 * Graphics display configuration |
|
31 */ |
|
32 struct DisplayConfig { |
|
33 /** Display resolution */ |
|
34 PixelDimensions resolution; |
|
35 |
|
36 /** Fullscreen mode? */ |
|
37 bool fullscreen; |
|
38 |
|
39 /** Defaults */ |
|
40 DisplayConfig (void) : resolution(GRAPHICS_RESOLUTION_WIDTH, GRAPHICS_RESOLUTION_HEIGHT), fullscreen(GRAPHICS_FULLSCREEN) { } |
|
41 }; |
|
42 |
|
43 |
|
44 #endif |