summaryrefslogtreecommitdiff
path: root/include/wall.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/wall.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/wall.h')
-rw-r--r--include/wall.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/wall.h b/include/wall.h
index 5918140..e22bf34 100644
--- a/include/wall.h
+++ b/include/wall.h
@@ -3,7 +3,7 @@
#define WALL_H
-#include <interface.h>
+#include "interface.h"
#include "list.h"
typedef struct wall_struct
@@ -19,11 +19,21 @@ typedef struct wall_struct
int layer; // vrstva
+#ifndef BUBLIC_SERVER
SDL_Surface *img; //obrazok
+#endif
} wall_t;
+#ifndef BUBLIC_SERVER
extern wall_t* newWall(int x, int y, int w, int h,
int img_x, int img_y, int layer, SDL_Surface *img);
+#endif
+
+#ifdef BUBLIC_SERVER
+extern wall_t* newWall(int x, int y, int w, int h,
+ int img_x, int img_y, int layer);
+#endif
+
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);