0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 09:03:42 +00:00
SDL_Minigame/include/PopupWindow.h
Markus 0a1747d651 replayability added,
popup window for victory added,
png files for new skins and popups added
2024-01-29 15:04:44 -06:00

35 lines
538 B
C++

#ifndef SDL_MINIGAME_POPUPWINDOW_H
#define SDL_MINIGAME_POPUPWINDOW_H
#include <SDL.h>
#include <SDL_ttf.h>
#include <string>
class Game;
class PopupWindow {
public:
PopupWindow(const char* title, const std::string& message);
~PopupWindow();
void handleWinnerEvents();
bool shouldContinue() const;
bool interacted;
void renderWinnerPopup(bool winner);
private:
SDL_Renderer* renderer;
SDL_Window* window;
SDL_Texture* texture;
bool continueGame;
};
#endif //SDL_MINIGAME_POPUPWINDOW_H