Open Source Tomb Raider Engine
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*!
  2. * \file include/RunTime.h
  3. * \brief run time configuration storage
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _RUNTIME_H_
  8. #define _RUNTIME_H_
  9. #include <string>
  10. /*!
  11. * \brief Main Game Singleton
  12. */
  13. class RunTime {
  14. public:
  15. RunTime();
  16. std::string getBaseDir();
  17. void setBaseDir(std::string dir);
  18. std::string getPakDir();
  19. void setPakDir(std::string dir);
  20. std::string getAudioDir();
  21. void setAudioDir(std::string dir);
  22. std::string getDataDir();
  23. void setDataDir(std::string dir);
  24. KeyboardButton getKeyBinding(ActionEvents event);
  25. void setKeyBinding(ActionEvents event, KeyboardButton button);
  26. bool isRunning();
  27. void setRunning(bool run);
  28. bool getFPS();
  29. void setFPS(bool fps);
  30. private:
  31. std::string baseDir;
  32. std::string pakDir;
  33. std::string audioDir;
  34. std::string dataDir;
  35. KeyboardButton keyBindings[ActionEventCount];
  36. bool gameIsRunning;
  37. bool showFPS;
  38. };
  39. RunTime &getRunTime();
  40. #endif