Open Source Tomb Raider Engine
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

OpenRaider.h 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 "Sound.h"
  11. #include "Window.h"
  12. /*!
  13. * \brief Main Game Singleton
  14. */
  15. class OpenRaider {
  16. public:
  17. /*!
  18. * \brief Constructs an object of OpenRaider
  19. */
  20. OpenRaider();
  21. /*!
  22. * \brief Deconstructs an object of OpenRaider
  23. */
  24. ~OpenRaider();
  25. /*!
  26. * \brief Load the configuration file
  27. * \returns 0 on success
  28. */
  29. int loadConfig(const char *config);
  30. int command(const char *command);
  31. int command(const char *command, std::vector<char *> *args);
  32. char *expandDirectoryNames(const char *s);
  33. int set(const char *var, const char *value);
  34. int bind(const char *action, const char *key);
  35. int initialize();
  36. void run();
  37. private:
  38. bool mInit;
  39. bool mRunning;
  40. Window *mWindow;
  41. Sound *mSound;
  42. char *mBaseDir;
  43. char *mPakDir;
  44. char *mAudioDir;
  45. char *mDataDir;
  46. };
  47. #endif