From 858f01dedbb681c8e62c9dae4d7c3174991844bf Mon Sep 17 00:00:00 2001 From: oroborus Date: Fri, 7 Mar 2008 21:12:57 +0000 Subject: -podpora teleportov -podpora rur git-svn-id: http://opensvn.csie.org/tuxanci_ng@9 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- include/teleport.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/teleport.h (limited to 'include/teleport.h') diff --git a/include/teleport.h b/include/teleport.h new file mode 100644 index 0000000..4b9ed66 --- /dev/null +++ b/include/teleport.h @@ -0,0 +1,31 @@ + +#ifndef TELEPORT_H + +#define TELEPORT_H + +#include +#include "list.h" + +typedef struct teleport_struct +{ + int x; // poloha steny + int y; + + int w; // rozmery steny + int h; + + int layer; // vrstva + + SDL_Surface *img; //obrazok +} teleport_t; + +extern teleport_t* newTeleport(int x, int y, int w, int h, int layer, SDL_Surface *img); +extern void drawTeleport(teleport_t *p); +extern void drawListTeleport(list_t *listTeleport); +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 + -- cgit v1.2.3