summaryrefslogtreecommitdiff
path: root/include/teleport.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/teleport.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/teleport.h')
-rw-r--r--include/teleport.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/teleport.h b/include/teleport.h
index 4b9ed66..7eba1ce 100644
--- a/include/teleport.h
+++ b/include/teleport.h
@@ -3,8 +3,10 @@
#define TELEPORT_H
-#include <interface.h>
+#include "interface.h"
+#include "main.h"
#include "list.h"
+#include "interface.h"
typedef struct teleport_struct
{
@@ -16,12 +18,23 @@ typedef struct teleport_struct
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);