repo.or.cz
/
EroBeats.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2016 project-added to repo
[EroBeats.git]
/
Release
/
MessageBox.h
blob
9efebe3bbb17ad4b7381a128d43b1e38e70cda48
1
#pragma once
2
#include <SDL\SDL.h>
3
4
#include<chrono>
5
6
#include
"ResourceMaster.h"
7
#include
"Fonts.h"
8
#include
"Animation.h"
9
10
using namespace
std
;
11
12
class
MessageBox
13
{
14
public
:
15
MessageBox
(
int
*
scrn
,
ResourceMaster
*
resou
,
string mainMessage
,
string yesMessage
,
string noMessage
);
16
~
MessageBox
();
17
18
void
boxLoop
();
19
void
processInput
();
20
void
update
();
21
void
play
();
22
void
render
();
23
void
close
();
24
25
bool
getResponse
();
26
27
int
*
screen
;
28
ResourceMaster
*
rsc
;
29
Fonts
*
font
;
30
Animation
*
outlineAnimation
;
31
32
int
x
;
33
int
y
;
34
35
bool
running
;
36
bool
mouseClicked
;
37
bool
hoverYes
;
38
bool
hoverNo
;
39
40
bool
response
;
41
42
SDL_Rect rectMain
;
43
SDL_Rect rectYes
;
44
SDL_Rect rectNo
;
45
SDL_Rect rectMessage
;
46
47
SDL_Texture
*
textYes
;
48
SDL_Texture
*
textNo
;
49
SDL_Texture
*
textMessage
;
50
};
51