home *** CD-ROM | disk | FTP | other *** search
/ Quake++ for Quake / Quake++.iso / quake / qube / thing.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-29  |  876 b   |  40 lines

  1. /***
  2. ****  QuBE --- "Thing" manipulation routines.
  3. ***/
  4.  
  5. /* These are the parts of a thing.  Note that "origin" and the coords
  6.    are redundant, but I haven't had the chance to take them out yet. */
  7.  
  8. typedef struct {
  9.     char *classname;
  10.     char *origin;
  11.         char *angle;
  12.     char *style;
  13.     char *spawnflags;
  14.     char *wad;
  15.     char *light;
  16.     char *model;
  17.     long int x, y, z;
  18. } thing;
  19.  
  20. /* Thing data.    Needed by gfx.c */
  21.  
  22. extern thing *thingarray[1024];
  23. extern int nextthing;
  24. extern int curthing;
  25. extern int putback;
  26. extern long int maxlen;
  27.  
  28. /* Thing parse routines.  Needed by gfx.c */
  29.  
  30. void skipspace(FILE *fp);
  31. int nextchar(FILE *fp);
  32. int fileend(void);
  33. char *getstring(FILE *fp);
  34. int getopenbrace(FILE *fp);
  35. int getclosebrace(FILE *fp);
  36. void ThingList(void);
  37. void ThingXtract(int argnum, char **argv);
  38. void ThingReplace(int argnum, char **argv);
  39.  
  40.