blob: 59181402a608ee49e2633a3ac40d5bb2f4c9e58e (
plain)
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
|
#ifndef WALL_H
#define WALL_H
#include <interface.h>
#include "list.h"
typedef struct wall_struct
{
int x; // poloha steny
int y;
int w; // rozmery steny
int h;
int img_x; // poloha obrazka
int img_y;
int layer; // vrstva
SDL_Surface *img; //obrazok
} wall_t;
extern wall_t* newWall(int x, int y, int w, int h,
int img_x, int img_y, int layer, SDL_Surface *img);
extern void drawWall(wall_t *p);
extern void drawListWall(list_t *listWall);
extern int isConflictWithListWall(list_t *listWall, int x, int y, int w, int h);
extern void eventConflictShotWithWall(list_t *listWall, list_t *listShot);
extern void destroyWall(wall_t *p);
#endif
|