home *** CD-ROM | disk | FTP | other *** search
/ Quake 'em / QUAKEEM.BIN / quake / programs / qube / entities.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-07  |  1.0 KB  |  53 lines

  1. /***
  2. ****  QuBE --- Entity manipulation routines.
  3. ***/
  4.  
  5. /* These are the parts of a entity.  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.     int type;
  19. } entity;
  20.  
  21. /* Thing data.    Needed by gfx.c */
  22.  
  23. extern entity *entityarray[2048];
  24. extern int nextentity;
  25. extern int curentity;
  26. extern int putback;
  27. extern long int maxlen;
  28.  
  29. enum {
  30.     ENTITY_NONE = 0,
  31.     ENTITY_WEAPON,
  32.     ENTITY_MONSTER,
  33.     ENTITY_HEALTH,
  34.     ENTITY_ITEM,
  35.     ENTITY_LIGHT,
  36.     ENTITY_VISILIGHT,
  37.     ENTITY_START,
  38.     ENTITY_DMSTART,
  39. };
  40.  
  41. /* Thing parse routines.  Needed by gfx.c */
  42.  
  43. void skipspace(FILE *fp);
  44. int nextchar(FILE *fp);
  45. int fileend(void);
  46. char *getstring(FILE *fp);
  47. int getopenbrace(FILE *fp);
  48. int getclosebrace(FILE *fp);
  49. void EntList(void);
  50. void EntXtract(int argnum, char **argv);
  51. void EntReplace(int argnum, char **argv);
  52.  
  53.