home *** CD-ROM | disk | FTP | other *** search
/ Superpower (Alt) / SUPERPOWER.iso / q / source / entitycl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-08  |  717 b   |  43 lines

  1. #import <appkit/appkit.h>
  2. #import "mathlib.h"
  3.  
  4. typedef enum {esize_model, esize_fixed} esize_t;
  5.  
  6. #define    MAX_FLAGS    8
  7.  
  8. @interface EntityClass : Object
  9. {
  10.     char    *name;
  11.     esize_t    esize;
  12.     vec3_t    mins, maxs;
  13.     vec3_t    color;
  14.     char    *comments;
  15.     char    flagnames[MAX_FLAGS][32];
  16. }
  17.  
  18. - initFromText: (char *)text;
  19. - (char *)classname;
  20. - (esize_t)esize;
  21. - (float *)mins;        // only for esize_fixed
  22. - (float *)maxs;        // only for esize_fixed
  23. - (float *)drawColor;
  24. - (char *)comments;
  25. - (char *)flagName: (unsigned)flagnum;
  26.  
  27. @end
  28.  
  29. extern    id    entity_classes_i;
  30.  
  31. @interface EntityClassList : List
  32. {
  33.     id        nullclass;
  34.     char    *source_path;
  35. }
  36.  
  37. - initForSourceDirectory: (char *)path;
  38. - (id)classForName: (char *)name;
  39. - (void)scanDirectory;
  40.  
  41. @end
  42.  
  43.