height_info.hh 881 B

12345678910111213141516171819202122232425262728293031323334353637
  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 _HEIGHT_INFO_HH_
  9. #define _HEIGHT_INFO_HH_
  10. class g1_height_info
  11. {
  12. public:
  13. enum
  14. {
  15. BELOW_GROUND = 1,
  16. ROTATE_BITS = (4|8)
  17. };
  18. g1_height_info();
  19. i4_bool in_height_range(i4_float z)
  20. {
  21. return (z<ceiling_height && z>=floor_height);
  22. }
  23. w8 flags;
  24. w16 model_type;
  25. i4_float floor_height;
  26. i4_float ceiling_height;
  27. };
  28. #endif