Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. #ifndef MENU_STATE_H
  2. #define MENU_STATE_H
  3. #include <SFML/Graphics.hpp>
  4.  
  5. enum Menu_States{Play, Help, Quit};
  6.  
  7.  
  8. class Menu_State
  9. {
  10. sf::CircleShape triangle; //shows which one option u are currently hovering over
  11. sf::Text play_game, quit_game, help;
  12. sf::Font font;
  13. sf::Clock clock; //clock for restarting time while choosing states
  14. int state; //checking if it is play, help, or quit
  15. public:
  16. Menu_State(sf::Font &c_font);
  17. void moveInMenu();
  18. void check(); //checks what option is selected and highlights it
  19. int checkIfClicked() const;
  20. void draw_options(sf::RenderWindow *window) const;
  21.  
  22. };
  23.  
  24. #endif MENU_STATE_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement