Dauphine  0.1
A platforming/stealth game in a medieval fantasy setting, developed with SDL2.
Static Public Member Functions | Static Private Attributes | List of all members
Configuration Class Reference

Game configuration class. More...

#include <Configuration.h>

Static Public Member Functions

static void initialize ()
 Initializes all the attributes. More...
 
static unsigned int getResolutionWidth ()
 
static unsigned int getResolutionHeight ()
 
static uint32_t getMaxFramerate ()
 
static std::string getWindowTitle ()
 
static unsigned int getLogicalRenderSize ()
 
static unsigned int getCameraDistanceWidth ()
 
static unsigned int getCameraDistanceHeight ()
 
static unsigned int getScreenWidth ()
 
static unsigned int getScreenHeight ()
 

Static Private Attributes

static const unsigned int resolutionWidth = 192
 The game's width resolution. More...
 
static const unsigned int resolutionHeight = 108
 The game's height resolution. More...
 
static uint32_t maxFramerate = 0
 The game's max framerate. More...
 
static std::string windowTitle = ""
 The game window's title. More...
 
static unsigned int logicalRenderSize = 0
 The size of the logical rendering. More...
 
static unsigned int screenWidth = 0
 The screen width. More...
 
static unsigned int screenHeight = 0
 The screen height. More...
 
static unsigned int cameraDistanceWidth = 0
 The width distance of the camera. More...
 
static unsigned int cameraDistanceHeight = 0
 The height distance of the camera. More...
 

Detailed Description

Game configuration class.

Todo:

Refactor the Configuration class.

Implement all the possible resolutions the game will "want".

Member Function Documentation

unsigned int Configuration::getCameraDistanceHeight ( )
static
Returns
cameraDistanceHeight
unsigned int Configuration::getCameraDistanceWidth ( )
static
Returns
cameraDistanceWidth
unsigned int Configuration::getLogicalRenderSize ( )
static
Returns
initialMultiplier
See Also
Window::rescale
uint32_t Configuration::getMaxFramerate ( )
static
Returns
maxFramerate
unsigned int Configuration::getResolutionHeight ( )
static
Returns
resolutionHeight
unsigned int Configuration::getResolutionWidth ( )
static
Returns
resolutionWidth
unsigned int Configuration::getScreenHeight ( )
static
Returns
The current screen height.
unsigned int Configuration::getScreenWidth ( )
static
Returns
The current screen width.
std::string Configuration::getWindowTitle ( )
static
Returns
windowTitle
void Configuration::initialize ( )
static

Initializes all the attributes.

Todo:
Make sure recieved ints are not negative.

Member Data Documentation

unsigned int Configuration::cameraDistanceHeight = 0
staticprivate

The height distance of the camera.

unsigned int Configuration::cameraDistanceWidth = 0
staticprivate

The width distance of the camera.

unsigned int Configuration::logicalRenderSize = 0
staticprivate

The size of the logical rendering.

uint32_t Configuration::maxFramerate = 0
staticprivate

The game's max framerate.

const unsigned int Configuration::resolutionHeight = 108
staticprivate

The game's height resolution.

(10)

const unsigned int Configuration::resolutionWidth = 192
staticprivate

The game's width resolution.

(16)

unsigned int Configuration::screenHeight = 0
staticprivate

The screen height.

unsigned int Configuration::screenWidth = 0
staticprivate

The screen width.

std::string Configuration::windowTitle = ""
staticprivate

The game window's title.


The documentation for this class was generated from the following files: