1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
/************************************************************************
*
* defs.h - modify Conquest's behavior - hopefully for the better ;-)
*
* Jon Trulson
*
* $Id: defs.h,v 1.20 2004/11/14 08:26:40 jon Exp $
*
* Copyright 1999-2004 Jon Trulson under the ARTISTIC LICENSE. (See LICENSE).
***********************************************************************/
/**********************************************************************/
/* Unix/C specific porting and supporting code Copyright (C)1994-1996 */
/* by Jon Trulson <jon@radscan.com> under the same terms and */
/* conditions of the original copyright by Jef Poskanzer and Craig */
/* Leres. */
/* */
/**********************************************************************/
#ifndef _DEFS_H
#define _DEFS_H
/* Basic information */
/*
* CONQUEST_GROUP - this is the group that all conquest files are chgrp'd
* to... This is also the group that the conquest executables setgid()
* to as well. You should leave it as is... Default: conquest.
*/
#ifndef CONQUEST_GROUP
# define CONQUEST_GROUP "conquest"
#endif
/*
* Some variables that used to be in conqfig.c - relative to conquest
* installation directories
*/
#define C_CONQ_CONQDRIV "conqdriv"
#define C_CONQ_COMMONBLK "conquest_common.img"
#define C_CONQ_ERRLOG "conquest.log"
#define C_CONQ_NEWSFILE "HISTORY"
#define C_CONQ_HELPFILE "conquest.doc"
/*
* USE_COMMONMLOCK - Lock the common block into memory via memctl().
* Requires the PLOCK privilege (unixware).
*/
#if defined(UNIXWARE)
# define USE_COMMONMLOCK
#endif
/*
* WARP0CLOAK - Although the code made it difficult to scan a ship that was
* cloaked at warp 0, it was still possible to scan such a ship if it was
* within alert range. Defining this means you CANNOT be detected (even by
* robots) if you are cloaked and at warp 0.0. An enemy can fly right over
* you and won't even know your there... heeheehee
*/
#define WARP0CLOAK
/*
* DO_EXPLODING_SHIPS - In this mode, ships explode when they die, with
* a force equal to the number of torpedos the ship has available, and
* only if the ship had the fuel to 'fire' them, were it alive to do
* so.
*/
#define DO_EXPLODING_SHIPS
/*
* SET_PRIORITY - increase our priority a bit, increase the driver's a bit
* more. Requires the TSHAR privilege (unixware).
*/
#if defined(UNIXWARE)
# define SET_PRIORITY
#endif
/* Priorities, if we're using them */
#ifdef SET_PRIORITY
# define CONQUEST_PRI (-4)
# define CONQDRIV_PRI (-7)
#endif
/*
* Macro defines
*/
#define MAX_MACROS 64 /* max number of macros supported */
#define MAX_MACRO_LEN 70 /* max length of a macro */
/*
* OPER_MSG_BEEP - if defined, beep when a message arrives in conqoper.
*/
#undef OPER_MSG_BEEP
/* DEBUG* - debug some things */
#undef DEBUG_FLOW /* trace init flow */
#undef DEBUGGING /* general debugging */
#undef DEBUG_LOCKING /* debugging common block locking */
#undef DEBUG_CONFIG /* debug configuration file processing */
#undef DEBUG_SEM /* semaphore debugging */
#undef DEBUG_MACROS /* MACRO debugging */
#undef DEBUG_IO /* IO debugging */
#undef DEBUG_ETA /* Estimated Time of Arrival debugging */
#undef DEBUG_SIG /* debug signal handling */
#undef DEBUG_AI /* debug the robots */
#undef DEBUG_MISC /* debug other misc stuff */
#undef DEBUG_RANDOM /* debug the random number library */
#undef DEBUG_COLOR /* debug color processing */
#undef DEBUG_IOGTIMED /* debug timed input */
#undef DEBUG_SERVERAUTH /* debug server auth operation */
#undef DEBUG_OPTIONS /* debug option screens/handling */
#undef DEBUG_REC /* debug recording */
#undef DEBUG_SERVERPROC /* server proc*() routines */
#undef DEBUG_SERVERCLNTSTAT /* server sendClientStat() */
#undef DEBUG_SERVERSEND /* server send*() routines */
#undef DEBUG_CLIENTPROC /* client proc* routines */
#undef DEBUG_CLIENTSEND /* client send* routines */
#undef DEBUG_META /* meta server debugging */
#undef DEBUG_PKT /* debug packet handling */
#undef DEBUG_GL /* debug misc GL stuff */
#endif /* _DEFS_H */
|