summaryrefslogtreecommitdiff
path: root/include/pipe.h
diff options
context:
space:
mode:
authororoborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-15 18:35:48 +0000
committeroroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e>2008-03-15 18:35:48 +0000
commitb84b59153c587248ca8a6a94a6d93977e851233f (patch)
treee13b33f09ee6ac130bb6045626618b1c5fc4d787 /include/pipe.h
parent6038f9434f1eb40caf7992ece9a3972e95a9fc11 (diff)
- moznost skompilovat public server bez GUI ( pomocou Makefile-publicServer )
port sa nastavuje ako ./publicserver --port <port> - jeto iba prvotna verzia treba to este odladit a zostabilnit git-svn-id: http://opensvn.csie.org/tuxanci_ng@18 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'include/pipe.h')
-rw-r--r--include/pipe.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/pipe.h b/include/pipe.h
index e665e0a..7f38fb8 100644
--- a/include/pipe.h
+++ b/include/pipe.h
@@ -3,6 +3,7 @@
#define PIPE_H
+#include "main.h"
#include "interface.h"
#include "list.h"
@@ -20,14 +21,25 @@ typedef struct pipe_struct
int layer; // vrstva
+#ifndef BUBLIC_SERVER
SDL_Surface *img; //obrazok
+#endif
} pipe_t;
+#ifndef BUBLIC_SERVER
extern pipe_t* newPipe(int x, int y, int w, int h, int layer,
int id, int id_out, int position, SDL_Surface *img);
+#endif
+
+#ifdef BUBLIC_SERVER
+extern pipe_t* newPipe(int x, int y, int w, int h, int layer,
+ int id, int id_out, int position);
+#endif
+#ifndef BUBLIC_SERVER
extern void drawPipe(pipe_t *p);
extern void drawListPipe(list_t *listPipe);
+#endif
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);