mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 09:03:42 +00:00
28 lines
472 B
C++
28 lines
472 B
C++
#pragma once
|
|
#include <SDL.h>
|
|
#include <SDL_ttf.h>
|
|
#include <string>
|
|
|
|
#include "Entity.h"
|
|
|
|
class Game;
|
|
|
|
class PopupWindow {
|
|
|
|
public:
|
|
PopupWindow(const char* title, const std::string& message);
|
|
~PopupWindow();
|
|
|
|
void handleWinnerEvents();
|
|
bool shouldContinue() const;
|
|
|
|
bool interacted;
|
|
|
|
void renderWinnerPopup(Entity::TeamLabel winner);
|
|
|
|
private:
|
|
SDL_Renderer* renderer;
|
|
SDL_Window* window;
|
|
SDL_Texture* texture;
|
|
bool continueGame;
|
|
}; |