1 /*
2 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
3 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
4 END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
5 ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
6 IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
7 SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
8 FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
9 CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
10 AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
11 COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
12 */
13 
14 #ifndef _INFERNO_H
15 #define _INFERNO_H
16 
17 #include "pstypes.h"
18 
19 
20 //	MACRO for single line #ifdef WINDOWS #else DOS
21 #ifdef WINDOWS
22 #define WINDOS(x,y) x
23 #define WIN(x) x
24 #else
25 #define WINDOS(x,y) y
26 #define WIN(x)
27 #endif
28 
29 #ifdef MACINTOSH
30 #define MAC(x) x
31 #else
32 #define MAC(x)
33 #endif
34 
35 
36 /**
37  **	Constants
38  **/
39 
40 //	How close two points must be in all dimensions to be considered the same point.
41 #define	FIX_EPSILON	10
42 
43 //the maximum length of a filename
44 #define FILENAME_LEN 13
45 
46 //for Function_mode variable
47 #define FMODE_EXIT		0		//leaving the program
48 #define FMODE_MENU		1		//Using the menu
49 #define FMODE_GAME		2		//running the game
50 #define FMODE_EDITOR		3		//running the editor
51 
52 //This constant doesn't really belong here, but it is because of horrible
53 //circular dependencies involving object.h, aistruct.h, polyobj.h, & robot.h
54 #define MAX_SUBMODELS 10			//how many animating sub-objects per model
55 
56 /**
57  **	Global variables
58  **/
59 
60 extern int Function_mode;			//in game or editor?
61 extern int Screen_mode;				//editor screen or game screen?
62 
63 //The version number of the game
64 extern ubyte Version_major,Version_minor;
65 
66 #ifdef MACINTOSH
67 extern ubyte Version_fix;
68 #endif
69 
70 #endif
71 
72 
73