summaryrefslogtreecommitdiff
path: root/include/teleport.h
blob: 7eba1ceec39f29e8f261e28c54cec868db779e98 (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
35
36
37
38
39
40
41
42
43
44

#ifndef TELEPORT_H

#define TELEPORT_H

#include "interface.h"
#include "main.h"
#include "list.h"
#include "interface.h"

typedef struct teleport_struct
{
	int x; // poloha steny	
	int y;

	int w; // rozmery steny
	int h;

	int layer; // vrstva

#ifndef BUBLIC_SERVER	
	SDL_Surface *img; //obrazok
#endif
} teleport_t;

#ifndef BUBLIC_SERVER	
extern teleport_t* newTeleport(int x, int y, int w, int h, int layer, SDL_Surface *img);
#endif

#ifdef BUBLIC_SERVER	
extern teleport_t* newTeleport(int x, int y, int w, int h, int layer);
#endif

#ifndef BUBLIC_SERVER	
extern void drawTeleport(teleport_t *p);
extern void drawListTeleport(list_t *listTeleport);
#endif
extern teleport_t* isConflictWithListTeleport(list_t *listTeleport, int x, int y, int w, int h);
extern void eventConflictShotWithTeleport(list_t *listTeleport, list_t *listShot);
extern void eventTeleportTux(list_t *listTeleport, teleport_t *teleport, tux_t *tux);
extern void destroyTeleport(teleport_t *p);

#endif