Open Source Tomb Raider Engine
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Menu.h 837B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*!
  2. * \file include/Menu.h
  3. * \brief Menu 'overlay'
  4. *
  5. * \author xythobuz
  6. */
  7. #ifndef _MENU_H_
  8. #define _MENU_H_
  9. #include <memory>
  10. #include "Font.h"
  11. #include "utils/Folder.h"
  12. /*!
  13. * \brief Menu 'overlay'
  14. */
  15. class Menu {
  16. public:
  17. /*!
  18. * \brief Constructs an object of Menu
  19. */
  20. Menu();
  21. /*!
  22. * \brief Deconstructs an object of Menu
  23. */
  24. ~Menu();
  25. int initialize();
  26. void setVisible(bool visible);
  27. bool isVisible();
  28. void display();
  29. void handleKeyboard(KeyboardButton key, bool pressed);
  30. void handleMouseClick(unsigned int x, unsigned int y, KeyboardButton button, bool released);
  31. private:
  32. void play();
  33. bool mVisible;
  34. long mCursor;
  35. long mMin;
  36. FontString mainText; //!< Used to draw heading centered
  37. Folder *mapFolder;
  38. };
  39. Menu &getMenu();
  40. #endif