Open Source Tomb Raider Engine
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

Game.h 722B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*!
  2. * \file include/Game.h
  3. * \brief Game abstraction
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _GAME_H_
  8. #define _GAME_H_
  9. #include <string>
  10. #include <vector>
  11. #include "Entity.h"
  12. class Game {
  13. public:
  14. static void destroy();
  15. static bool isLoaded() { return mLoaded; }
  16. static int loadLevel(const char* level);
  17. static void handleAction(ActionEvents action, bool isFinished);
  18. static void handleMouseMotion(int xrel, int yrel, int xabs, int yabs);
  19. static void handleControllerAxis(float value, KeyboardButton axis);
  20. static Entity& getLara();
  21. static void setLara(long lara);
  22. private:
  23. static bool mLoaded;
  24. static long mLara;
  25. static bool activeEvents[ActionEventCount];
  26. };
  27. #endif