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