Entity.h 653 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #define MAX_KEY 64
  2. #define MAX_VALUE 128
  3. typedef struct epair_s
  4. {
  5. struct epair_s *next;
  6. char key[MAX_KEY];
  7. char value[MAX_VALUE];
  8. } epair_t;
  9. // an Entity is a list of brush objects, with additional key / value info
  10. @interface Entity : List
  11. {
  12. epair_t *epairs;
  13. BOOL modifiable;
  14. }
  15. - initClass: (char *)classname;
  16. - initFromTokens;
  17. - free;
  18. - (BOOL)modifiable;
  19. - setModifiable: (BOOL)m;
  20. - (char *)targetname;
  21. - writeToFILE: (FILE *)f region:(BOOL)reg;
  22. - (char *)valueForQKey: (char *)k;
  23. - getVector: (vec3_t)v forKey: (char *)k;
  24. - setKey:(char *)k toValue:(char *)v;
  25. - (int)numPairs;
  26. - (epair_t *)epairs;
  27. - removeKeyPair: (char *)key;
  28. @end