Menu.hpp 693 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <SFML/Graphics.hpp>
  3. using namespace sf;
  4. class Menu
  5. {
  6. public:
  7. Menu();
  8. ~Menu();
  9. bool isDead() const;
  10. void revive(bool permakill = false);
  11. void logic(float delta, const Vector2i mouse, bool& running, bool* keepRunning);
  12. void render(RenderTarget& target) const;
  13. private:
  14. bool _dead;
  15. bool _permakilled;
  16. /**
  17. * Who cares that sf has fonts and texts?
  18. * Me neither.
  19. */
  20. std::vector<Sprite*> _menu;
  21. std::vector<Sprite*> _number;
  22. Texture _badlyAllocatedBannerTexture;
  23. Texture _badlyAllocatedPlayTexture;
  24. Texture _badlyAllocatedQuitTexture;
  25. Texture _badlyAllocatedGaemoverTexture;
  26. Texture _badlyAllocatedRetryTexture;
  27. Texture _badlyAllocatedNumberTexture;
  28. };