home *** CD-ROM | disk | FTP | other *** search
/ DOOM 2 Mania / doomiimaniavolume1techexpresssoftware1995.iso / doommisc / wad1to2 / structs.h < prev    next >
C/C++ Source or Header  |  1994-11-02  |  2KB  |  65 lines

  1. struct wad_header
  2. {
  3.     char type[4];
  4.     long int num_entries;
  5.     long int dir_start;
  6. };
  7.  
  8. struct directory
  9. {
  10.     long int start;
  11.     long int length;
  12.     char name[8];
  13. };
  14.  
  15.  
  16. /*- The level structures ---------------------------------------------------*/
  17.  
  18. struct Thing
  19. {
  20.    short xpos;      /* x position */
  21.    short ypos;      /* y position */
  22.    short angle;     /* facing angle */
  23.    short type;      /* thing type */
  24.    short when;      /* appears when? */
  25. };
  26.  
  27. struct Vertex
  28. {
  29.    short int x;         /* X coordinate */
  30.    short int y;         /* Y coordinate */
  31. };
  32.  
  33. struct LineDef
  34. {
  35.    short int start;     /* from this vertex ... */
  36.    short int end;       /* ... to this vertex */
  37.    short int flags;     /* see NAMES.C for more info */
  38.    short int type;      /* see NAMES.C for more info */
  39.    short int tag;       /* crossing this linedef activates the sector with the same tag */
  40.    short int sidedef1;  /* sidedef */
  41.    short int sidedef2;  /* only if this line adjoins 2 sectors */
  42. };
  43.  
  44. struct SideDef
  45. {
  46.    short int xoff;      /* X offset for texture */
  47.    short int yoff;      /* Y offset for texture */
  48.    char tex1[8];    /* texture name for the part above */
  49.    char tex2[8];    /* texture name for the part below */
  50.    char tex3[8];    /* texture name for the regular part */
  51.    short int sector;    /* adjacent sector */
  52. };
  53.  
  54. struct Sector
  55. {
  56.    short int floorh;    /* floor height */
  57.    short int ceilh;     /* ceiling height */
  58.    char floort[8];    /* floor texture */
  59.    char ceilt[8];    /* ceiling texture */
  60.    short int light;     /* light level (0-255) */
  61.    short int special;   /* special behaviour (0 = normal, 9 = secret, ...) */
  62.    short int tag;       /* sector activated by a linedef with the same tag */
  63. };
  64.  
  65.