summaryrefslogtreecommitdiff
path: root/include/pipe.h
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-07 21:12:57 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-07 21:12:57 +0000
commit858f01dedbb681c8e62c9dae4d7c3174991844bf (patch)
treeefe86d519ff4965373b1a2fe1f59b30e14d73d7e /include/pipe.h
parent44404eb5063bd5f040c7a4d8605aa3d43e3a968a (diff)
-podpora teleportov
-podpora rur git-svn-id: http://opensvn.csie.org/tuxanci_ng@9 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/pipe.h')
-rw-r--r--include/pipe.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/pipe.h b/include/pipe.h
new file mode 100644
index 0000000..e665e0a
--- /dev/null
+++ b/include/pipe.h
@@ -0,0 +1,36 @@
+
+#ifndef PIPE_H
+
+#define PIPE_H
+
+#include "interface.h"
+#include "list.h"
+
+typedef struct pipe_struct
+{
+ int x; // poloha steny
+ int y;
+
+ int w; // rozmery steny
+ int h;
+
+ int id;
+ int id_out;
+ int position;
+
+ int layer; // vrstva
+
+ SDL_Surface *img; //obrazok
+} pipe_t;
+
+extern pipe_t* newPipe(int x, int y, int w, int h, int layer,
+ int id, int id_out, int position, SDL_Surface *img);
+
+extern void drawPipe(pipe_t *p);
+extern void drawListPipe(list_t *listPipe);
+extern pipe_t* isConflictWithListPipe(list_t *listPipe, int x, int y, int w, int h);
+extern void eventConflictShotWithPipe(list_t *listPipe, list_t *listShot);
+extern void destroyPipe(pipe_t *p);
+
+#endif
+