home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / FAQSYS18.ZIP / FAQS.DAT / SIKES02.TXT < prev    next >
Text File  |  1995-08-01  |  745b  |  29 lines

  1. Listing 2.  Map File Structures
  2. #define NUMPLANES                     3
  3. #define ALLOCATEDLEVELNAMELENGTH    24
  4. #define WALL_PLANE                    0
  5. #define SPRITE_PLANE                1
  6. #define INFO_PLANE                    2
  7.  
  8. // Version structure.
  9. typedef    struct
  10.     {
  11.     char                 Signature[4];
  12.     unsigned long    Version;
  13.     } VERSION, *PVERSION;
  14.  
  15. // Header structure. There are 100 of these in each file.
  16. typedef struct
  17.     {
  18.     unsigned long     Used;
  19.     unsigned long     CRC;
  20.     unsigned long     RLEWtag;
  21.     unsigned long     MapSpecials;
  22.     unsigned long     Planestart[  NUMPLANES ];
  23.     unsigned long     Planelength[ NUMPLANES ];
  24.     char                 Name[ ALLOCATEDLEVELNAMELENGTH ];
  25.     } RTLMAP, *PRTLMAP;
  26.  
  27.  
  28. Note: These structure examples are given in the Official ROTT Specifications file, ROTSP1, by Apogee Software.
  29.