PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/src/Settings.h

http://github.com/clintbellanger/flare
C++ Header | 69 lines | 33 code | 11 blank | 25 comment | 0 complexity | 7c6475f50ab2610239c205bd8998f84a MD5 | raw file
 1/*
 2Copyright 2011 Clint Bellanger
 3
 4This file is part of FLARE.
 5
 6FLARE is free software: you can redistribute it and/or modify it under the terms
 7of the GNU General Public License as published by the Free Software Foundation,
 8either version 3 of the License, or (at your option) any later version.
 9
10FLARE is distributed in the hope that it will be useful, but WITHOUT ANY
11WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License along with
15FLARE.  If not, see http://www.gnu.org/licenses/
16*/
17
18/**
19 * Settings
20 */
21
22#ifndef SETTINGS_H
23#define SETTINGS_H
24
25#include <string>
26
27// Path info
28extern std::string PATH_CONF; // user-configurable settings files
29extern std::string PATH_USER; // important per-user data (saves)
30extern std::string PATH_DATA; // common game data
31
32// Audio and Video Settings
33extern int MUSIC_VOLUME;
34extern int SOUND_VOLUME;
35extern bool FULLSCREEN;
36extern int FRAMES_PER_SEC;
37extern int VIEW_W;
38extern int VIEW_H;
39extern int VIEW_W_HALF;
40extern int VIEW_H_HALF;
41extern bool DOUBLEBUF;
42extern bool HWSURFACE;
43
44// Input Settings
45extern bool MOUSE_MOVE;
46extern bool ENABLE_JOYSTICK;
47extern int JOYSTICK_DEVICE;
48
49// Engine Settings
50extern bool MENUS_PAUSE;
51
52// Tile Settings
53extern int UNITS_PER_TILE;
54extern int TILE_SHIFT;
55extern int UNITS_PER_PIXEL_X;
56extern int UNITS_PER_PIXEL_Y;
57extern int TILE_W;
58extern int TILE_H;
59extern int TILE_W_HALF;
60extern int TILE_H_HALF;
61
62// Language Settings
63extern std::string LANGUAGE;
64
65void setPaths();
66bool loadSettings();
67bool saveSettings();
68
69#endif