2003-10-10 09:36:35 +00:00
|
|
|
/* $Id: inferno.h,v 1.3 2003-10-10 09:36:35 btb Exp $ */
|
2001-01-19 03:30:16 +00:00
|
|
|
/*
|
|
|
|
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
|
|
|
|
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
|
|
|
|
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
|
|
|
|
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
|
|
|
|
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
|
|
|
|
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
|
|
|
|
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
|
|
|
|
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
|
2003-10-10 09:36:35 +00:00
|
|
|
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
|
2001-01-19 03:30:16 +00:00
|
|
|
COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
|
|
|
*/
|
|
|
|
|
2003-10-10 09:36:35 +00:00
|
|
|
/*
|
|
|
|
*
|
|
|
|
* Header file for Inferno. Should be included in all source files.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2001-01-19 03:30:16 +00:00
|
|
|
#ifndef _INFERNO_H
|
|
|
|
#define _INFERNO_H
|
|
|
|
|
|
|
|
#include "pstypes.h"
|
|
|
|
|
|
|
|
|
2003-10-10 09:36:35 +00:00
|
|
|
// MACRO for single line #ifdef WINDOWS #else DOS
|
2001-01-19 03:30:16 +00:00
|
|
|
#ifdef WINDOWS
|
|
|
|
#define WINDOS(x,y) x
|
|
|
|
#define WIN(x) x
|
|
|
|
#else
|
|
|
|
#define WINDOS(x,y) y
|
|
|
|
#define WIN(x)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef MACINTOSH
|
|
|
|
#define MAC(x) x
|
|
|
|
#else
|
|
|
|
#define MAC(x)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
** Constants
|
|
|
|
**/
|
|
|
|
|
2003-10-10 09:36:35 +00:00
|
|
|
// How close two points must be in all dimensions to be considered the
|
|
|
|
// same point.
|
2001-10-25 02:19:32 +00:00
|
|
|
#define FIX_EPSILON 10
|
|
|
|
|
2003-10-10 09:36:35 +00:00
|
|
|
// the maximum length of a filename
|
2001-01-19 03:30:16 +00:00
|
|
|
#define FILENAME_LEN 13
|
|
|
|
|
|
|
|
//for Function_mode variable
|
2003-10-10 09:36:35 +00:00
|
|
|
#define FMODE_EXIT 0 // leaving the program
|
|
|
|
#define FMODE_MENU 1 // Using the menu
|
|
|
|
#define FMODE_GAME 2 // running the game
|
|
|
|
#define FMODE_EDITOR 3 // running the editor
|
2001-01-19 03:30:16 +00:00
|
|
|
|
2003-10-10 09:36:35 +00:00
|
|
|
// This constant doesn't really belong here, but it is because of
|
|
|
|
// horrible circular dependencies involving object.h, aistruct.h,
|
|
|
|
// polyobj.h, & robot.h
|
|
|
|
#define MAX_SUBMODELS 10 // how many animating sub-objects per model
|
2001-01-19 03:30:16 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
** Global variables
|
|
|
|
**/
|
|
|
|
|
2003-10-10 09:36:35 +00:00
|
|
|
extern int Function_mode; // in game or editor?
|
|
|
|
extern int Screen_mode; // editor screen or game screen?
|
2001-01-19 03:30:16 +00:00
|
|
|
|
2003-10-10 09:36:35 +00:00
|
|
|
// The version number of the game
|
|
|
|
extern ubyte Version_major, Version_minor;
|
2001-01-19 03:30:16 +00:00
|
|
|
|
|
|
|
#ifdef MACINTOSH
|
|
|
|
extern ubyte Version_fix;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|