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.

OpenRaider.h 864B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*!
  2. * \file include/OpenRaider.h
  3. * \brief Main Game Object
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _OPENRAIDER_H_
  8. #define _OPENRAIDER_H_
  9. #include <vector>
  10. #include "Window.h"
  11. /*!
  12. * \brief Main Game Singleton
  13. */
  14. class OpenRaider {
  15. public:
  16. /*!
  17. * \brief Constructs an object of OpenRaider
  18. */
  19. OpenRaider();
  20. /*!
  21. * \brief Deconstructs an object of OpenRaider
  22. */
  23. ~OpenRaider();
  24. /*!
  25. * \brief Load the configuration file
  26. * \returns 0 on success
  27. */
  28. int loadConfig(const char *config);
  29. int command(const char *command);
  30. int command(const char *command, std::vector<char *> *args);
  31. int set(const char *var, const char *value);
  32. int bind(const char *action, const char *key);
  33. int initialize();
  34. void run();
  35. private:
  36. bool mInit;
  37. bool mRunning;
  38. Window *mWindow;
  39. };
  40. #endif