--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/Configuration.hh Thu Jan 22 01:53:05 2009 +0200
@@ -0,0 +1,44 @@
+#ifndef CONFIGURATION_HH
+#define CONFIGURATION_HH
+
+/**
+ * @file
+ *
+ * Various classes/modules have their own configuration structures, which are defined here
+ *
+ * XXX: rename to "Settings" to distinguish from Config/config?
+ */
+
+#include "Types.hh"
+#include "Config.hh"
+
+/**
+ * Terrain configuration
+ */
+struct TerrainConfig {
+ /** Size of the terrain field*/
+ PixelDimensions dimensions;
+
+ /** Set to nonzero to generate random map */
+ int random_seed;
+
+ /** Defaults */
+ TerrainConfig (void) : dimensions(TERRAIN_WIDTH, TERRAIN_HEIGHT), random_seed(TERRAIN_RANDOM_SEED) { }
+};
+
+/**
+ * Graphics display configuration
+ */
+struct DisplayConfig {
+ /** Display resolution */
+ PixelDimensions resolution;
+
+ /** Fullscreen mode? */
+ bool fullscreen;
+
+ /** Defaults */
+ DisplayConfig (void) : resolution(GRAPHICS_RESOLUTION_WIDTH, GRAPHICS_RESOLUTION_HEIGHT), fullscreen(GRAPHICS_FULLSCREEN) { }
+};
+
+
+#endif