support for building without Network/Graphics, although the disable-graphics case is kind of hackish still
#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