]> icculus.org git repositories - btb/d2x.git/blob - main/inferno.h
cvars for weapon ordering
[btb/d2x.git] / main / inferno.h
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 /*
15  *
16  * Header file for Inferno.  Should be included in all source files.
17  *
18  */
19
20 #ifndef _INFERNO_H
21 #define _INFERNO_H
22
23 #include "pstypes.h"
24 #include "console.h"
25 #include "escort.h"
26
27
28 // MACRO for single line #ifdef WINDOWS #else DOS
29 #ifdef WINDOWS
30 #define WIN(x) x
31 #else
32 #define WIN(x)
33 #endif
34
35 #ifdef MACINTOSH
36 #define MAC(x) x
37 #else
38 #define MAC(x)
39 #endif
40
41
42 /**
43  **     Constants
44  **/
45
46 // How close two points must be in all dimensions to be considered the
47 // same point.
48 #define FIX_EPSILON     10
49
50 // the maximum length of a filename
51 #define FILENAME_LEN 13
52
53 //for Function_mode variable
54 #define FMODE_EXIT              0               // leaving the program
55 #define FMODE_MENU              1               // Using the menu
56 #define FMODE_GAME              2               // running the game
57 #define FMODE_EDITOR    3               // running the editor
58
59 // This constant doesn't really belong here, but it is because of
60 // horrible circular dependencies involving object.h, aistruct.h,
61 // polyobj.h, & robot.h
62 #define MAX_SUBMODELS   10              // how many animating sub-objects per model
63
64 /**
65  **     Global variables
66  **/
67
68 extern int Function_mode;               // in game or editor?
69 extern int Screen_mode;                 // editor screen or game screen?
70
71 // The version number of the game
72 extern ubyte Version_major, Version_minor;
73
74 #ifdef MACINTOSH
75 extern ubyte Version_fix;
76 #endif
77
78 /**
79  **     Functions
80  **/
81
82 void quit_request();
83
84
85 #endif
86
87