source: golgotha/src/golg/height_info.hh

Last change on this file was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 881 bytes
Line 
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
9#ifndef _HEIGHT_INFO_HH_
10#define _HEIGHT_INFO_HH_
11
12class g1_height_info
13{
14public:   
15  enum
16  {
17    BELOW_GROUND = 1,
18    ROTATE_BITS  = (4|8)
19  };
20
21  g1_height_info(); 
22
23  i4_bool in_height_range(i4_float z)
24  {
25    return (z<ceiling_height && z>=floor_height);
26  }
27
28
29  w8 flags;
30  w16 model_type;
31
32  i4_float floor_height;
33  i4_float ceiling_height;
34};
35   
36#endif
Note: See TracBrowser for help on using the repository browser.