-
Notifications
You must be signed in to change notification settings - Fork 0
/
images.h
49 lines (44 loc) · 820 Bytes
/
images.h
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
48
49
#ifndef IMAGES_H
#define IMAGES_H
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include <SDL/SDL_image.h>
#include <string>
using namespace std;
class images
{
public:
bool flag=false;
};
class Anim: public images
{
public:
string names[5];
unsigned char i;
void init();
~Anim();
SDL_Surface *img[5];
};
class Objects: public images
{
public:
string name[2];
void init();
~Objects();
SDL_Surface *img[2];
};
class hero: public images
{
public:
bool p=false;
SDL_Rect dest;
char pos=0;
string name[12];
void init();
~hero();
SDL_Surface *img_l[3];
SDL_Surface *img_r[3];
SDL_Surface *img_t[3];
SDL_Surface *img_b[3];
};
#endif // IMAGES_H