12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- /*!
- * \file include/OpenRaider.h
- * \brief Main Game Object
- *
- * \author xythobuz
- */
-
- #ifndef _OPENRAIDER_H_
- #define _OPENRAIDER_H_
-
- #include <string>
-
- /*!
- * \brief Main Game Singleton
- */
- class OpenRaider {
- public:
-
- /*!
- * \brief Constructs an object of OpenRaider
- */
- OpenRaider();
-
- /*!
- * \brief Deconstructs an object of OpenRaider
- */
- ~OpenRaider();
-
- int initialize();
-
- /*!
- * \brief Load the configuration file
- * \returns 0 on success
- */
- int loadConfig(const char *config);
-
- int command(std::string command);
-
- void run();
- void frame();
-
- void handleKeyboard(KeyboardButton key, bool pressed);
- void handleText(char *text, bool notFinished);
- void handleMouseClick(unsigned int x, unsigned int y, KeyboardButton button, bool released);
- void handleMouseMotion(int xrel, int yrel);
- void handleMouseScroll(int xrel, int yrel);
-
- //! \fixme should be private
- char *mBaseDir;
- char *mPakDir;
- char *mAudioDir;
- char *mDataDir;
- KeyboardButton keyBindings[ActionEventCount];
- bool mRunning;
- bool mFPS;
- };
-
- OpenRaider &getOpenRaider();
-
- #endif
|