From f5c8fc72ca1801a7771a75d652c58754b36db768 Mon Sep 17 00:00:00 2001 From: neoraider Date: Tue, 12 Jun 2007 17:19:01 +0000 Subject: libzoom: Added gates to level loader; zoom: Added gate to level; some Makefile.am changes --- zoom/level.h | 27 ++++++++++++++++++++------- zoom/types.h | 11 +---------- 2 files changed, 21 insertions(+), 17 deletions(-) (limited to 'zoom') diff --git a/zoom/level.h b/zoom/level.h index 49de407..a389f71 100644 --- a/zoom/level.h +++ b/zoom/level.h @@ -5,21 +5,32 @@ #include #include -typedef struct _GATEINFO { +/*typedef struct _GATEINFO { unsigned short state; unsigned short timer; -} GATEINFO; +} GATEINFO;*/ typedef struct _ROOM { + char *id; int nWalls; - int nThings; - int nGates; + //int nThings; + //int nGates; WALL *walls; - THING *things; - GATE *gates; - GATEINFO *gateinfo; + //THING *things; + //GATE *gates; + //GATEINFO *gateinfo; } ROOM; +typedef struct _GATE { + //unsigned char type; + //unsigned char open; + int nWalls; + WALL *walls; + //VERTEX point; + ROOM *room1, *room2; + int gate; +} GATE; + typedef struct _LEVELINFO { char *name; char *desc; @@ -35,6 +46,8 @@ typedef struct _LEVEL { LEVELINFO *info; int nRooms; ROOM *rooms; + int nGates; + GATE *gates; int nTextures; TEXTURE *textures; } LEVEL; diff --git a/zoom/types.h b/zoom/types.h index 4c86190..3feb5a3 100644 --- a/zoom/types.h +++ b/zoom/types.h @@ -23,7 +23,7 @@ #pragma pack(push, 2) typedef struct WALL { - unsigned char type; + //unsigned char type; unsigned char visible; union { TRIANGLE triangle; @@ -42,15 +42,6 @@ typedef struct _THING { unsigned char visible; VERTEX pos; } THING; - -typedef struct _GATE { - unsigned char type; - unsigned char open; - WALL walls[2]; - VERTEX point; - int room; - int gate; -} GATE; #pragma pack(pop) #endif -- cgit v1.2.3