obj_conscell.hh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /********************************************************************** <BR>
  2. This file is part of Crack dot Com's free source code release of
  3. Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
  4. information about compiling & licensing issues visit this URL</a>
  5. <PRE> If that doesn't help, contact Jonathan Clark at
  6. golgotha_source@usa.net (Subject should have "GOLG" in it)
  7. ***********************************************************************/
  8. #ifndef OBJ_CONSCELL_HH
  9. #define OBJ_CONSCELL_HH
  10. #include "arch.hh"
  11. #include "g1_limits.hh"
  12. #include "memory/lalloc.hh"
  13. class g1_object_class;
  14. class g1_obj_conscell_class;
  15. class g1_obj_conscell_class
  16. {
  17. public:
  18. g1_object_class *data;
  19. g1_obj_conscell_class *next;
  20. };
  21. class g1_obj_conscell_manager_class : public i4_linear_allocator
  22. {
  23. enum { MAXIMUM_OCCUPANCY=G1_MAX_OBJECTS*4 * 2/3 };
  24. public:
  25. g1_obj_conscell_manager_class()
  26. : i4_linear_allocator(sizeof(g1_obj_conscell_class),
  27. MAXIMUM_OCCUPANCY,0,"g1_conscells") {}
  28. };
  29. extern g1_obj_conscell_manager_class *g1_obj_conscell_manager;
  30. #endif