13 #include <SDL_mixer.h>
Pause menu with 3 buttons.
Definition: page_3b.hpp:23
SDL_Renderer * renderer
Definition: page_3b.hpp:80
SDL_Rect mSaveButton
Definition: page_3b.hpp:88
bool get_exit_mode() const
Checks if the exit button was pressed.
Definition: page_3b.hpp:65
void set_mode_type(int type)
Sets the current game mode type.
Definition: page_3b.hpp:71
~page_3b()
Destructor for pause menu.
Definition: page_3b.cpp:33
TTF_Font * police
Definition: page_3b.hpp:81
SDL_Rect button_exit
Definition: page_3b.hpp:89
void render_object()
Renders the pause menu.
Definition: page_3b.cpp:40
bool mSave
Definition: page_3b.hpp:83
bool ShouldResume() const
Checks if the resume button was pressed.
Definition: page_3b.hpp:53
SDL_Rect mResumeButton
Definition: page_3b.hpp:87
bool action_handler(const SDL_Event &event)
Handles events for the menu buttons.
Definition: page_3b.cpp:75
int selected_button
Definition: page_3b.hpp:85
int get_mode_type() const
Gets the current game mode type.
Definition: page_3b.hpp:77
page_3b(SDL_Renderer *renderer, TTF_Font *font)
Constructor for pause menu.
Definition: page_3b.cpp:21
bool ShouldSave() const
Checks if the save button was pressed.
Definition: page_3b.hpp:59
int mode_type
Definition: page_3b.hpp:91
bool mExit
Definition: page_3b.hpp:84
bool mResume
Definition: page_3b.hpp:82
TTF_Font * font
Definition: letter_test.cpp:24