1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- /*!
- * \file include/RunTime.h
- * \brief run time configuration storage
- *
- * \author xythobuz
- */
-
- #ifndef _RUNTIME_H_
- #define _RUNTIME_H_
-
- #include <string>
-
- /*!
- * \brief Main Game Singleton
- */
- class RunTime {
- public:
-
- RunTime();
-
- std::string getBaseDir();
- void setBaseDir(std::string dir);
- std::string getPakDir();
- void setPakDir(std::string dir);
- std::string getAudioDir();
- void setAudioDir(std::string dir);
- std::string getDataDir();
- void setDataDir(std::string dir);
-
- KeyboardButton getKeyBinding(ActionEvents event);
- void setKeyBinding(ActionEvents event, KeyboardButton button);
-
- bool isRunning();
- void setRunning(bool run);
-
- bool getFPS();
- void setFPS(bool fps);
-
- private:
- std::string baseDir;
- std::string pakDir;
- std::string audioDir;
- std::string dataDir;
-
- KeyboardButton keyBindings[ActionEventCount];
- bool gameIsRunning;
- bool showFPS;
- };
-
- RunTime &getRunTime();
-
- #endif
|