-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbackground.h
More file actions
47 lines (41 loc) · 862 Bytes
/
background.h
File metadata and controls
47 lines (41 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "splashkit.h"
#include <vector>
class Background
{
protected:
vector<bitmap> images;
public:
Background(){};
~Background(){};
virtual void draw()
{
for(int i = 0; i < images.size(); i++)
{
draw_bitmap(images[i], 0, 0, option_to_screen());
}
};
};
class GreyBackground : public Background
{
public:
GreyBackground()
{
images.push_back(bitmap_named("GreyBackground"));
}
};
class DarkBackground : public Background
{
public:
DarkBackground()
{
images.push_back(bitmap_named("DarkBackground"));
}
};
class SkyBackground : public Background
{
public:
SkyBackground()
{
images.push_back(bitmap_named("BlueBackground"));
}
};