DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T t

⟦4b65a9068⟧ TextFile

    Length: 5983 (0x175f)
    Types: TextFile
    Names: »tweakables.h«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Gb/tweakables.h« 

TextFile

/*
 * Galactic Bloodshed (Robert Chansky, smq@b)
 *  tweakable constants & other things -- changing the following may cause GB 
 *	to freak if
 *	the functions using them are not recompiled so be careful.
 */

#define VERS ".8"		/* game version */

#define UPDATE_TIME 3		/* 3 hour  update time */


#define LOGIN_NAME_SIZE 13

#define NUM_TIMES_TO_WAIT_FOR_LOCK 20
#define NEUTRAL_FD 1000

#define MAXCOMMSTRSIZE 250
#define COMMANDSIZE 42
#define MAXARGS 6

#define STARTINGPOPN 200

#define CHAR_CURR_SCOPE ':'	/* for getplace */

#define RTEMP 	  0		/* regular temp for planet */
#define TEMP 	  1		/* temperature */
#define METHANE   2		/* %age of gases for terraforming */
#define OXYGEN 	  3
#define CO2 	  4
#define HYDROGEN  5
#define NITROGEN  6
#define SULFUR 	  7
#define HELIUM 	  8
#define OTHER 	  9
#define TOXIC	 10

#define CHAR_OWNED_THING 	'@' 
#define CHAR_LAND 		'-'
#define CHAR_OWNED_LAND 	'x' 
#define CHAR_SEA 		'.'
#define CHAR_OWNED_SEA 		'x'
#define CHAR_MOUNT 		'^'
#define CHAR_DIFFOWNED 		'?'
#define CHAR_PLATED 		'|'
#define CHAR_WASTELAND 		'%'
#define CHAR_OWNED_WASTELAND 	'!'
#define CHAR_GAS 		'~'
#define CHAR_OWNED_GAS 		'x'
#define CHAR_CLOAKED 		' '
#define CHAR_ICE		'#'
#define CHAR_OWNED_ICE		'x'
#define CHAR_OWNED_MOUNT 	'X'

#define NAMESIZE 15
#define RNAMESIZE 25
#define PLACENAMESIZE (NAMESIZE + NAMESIZE + 13)
#define NUMSTARS 50
#define MAXPLANETS 5
#define BITS_MAXPLANETS 3	/* # bits required to represent */
/*#define MAXMOONS 3*/
#define MAXSSHIPS 55
#define MAXPSHIPS 25
#define MAXUSHIPS 800
#define MAXTOTALSHIPS (MAXUSHIPS+MAXSSHIPS*NUMSTARS+MAXPSHIPS*MAXPLANETS*NUMSTARS)

#define MAX_X 48		/* you might want to re-compile after tweaking*/
#define MAX_Y 18
#define RATIOXY 3.70		/* map ratio between x and y */
				/* ranges of map sizes (x usually ) */
#define EARTHTYPE_RANGE int_rand(37,41)
#define AIRLESS_RANGE int_rand(int_rand(16,20),25)
#define GASGIANT_RANGE int_rand(27,MAX_X-10)
#define ASTEROID_RANGE_X int_rand(int_rand(2,4),6)	/* asteroids have */
#define ASTEROID_RANGE_Y int_rand(int_rand(2,5),8)	/*  funny shapes */


#define UNIVSIZE	100000
#define SYSTEMSIZE	1000
#define PLORBITSIZE	50


#define AUTO_TELEG_SIZE		5000
#define TELEGRAM_SIZE		500
#define MAX_TELEGRAMS		50
#define UNTRANS_MSG		"[untranslateable]"
/*#define TELEG_TRANS_APCOST	1*/
#define TELEG_TRANS_RPCOST	4
#define TELEG_TRANS_AMT		0.45
#define TELEG_LETTERS		7
#define TELEG_PLAYER_AUTO	(-2)
#define TELEG_MAX_AUTO		7   /* when changing, alter field in plinfo */
#define TELEG_DELIM		'~'
#define TELEG_NDELIM		"%[^~]"

#define MASS_FUEL 	0.05
#define MASS_RESOURCE 	0.1
#define MASS_DESTRUCT 	0.15

#define LAUNCH_GRAV_MASS_FACTOR 0.18	/* fuel use modifier for taking off */
#define LAND_GRAV_MASS_FACTOR 0.29

#define FUEL_GAS_ADD 5.0	/* amt of fuel to add to ea ships tanks */
#define FUEL_GAS_ADD_TANKER 10.0
#define FUEL_GAS_ADD_STATION 20.0
#define FUEL_USE 0.3		/* fuel use per ship mass pt. */

#define REPAIR_RATE 5.0		/* rate at which ships get repaired */


#define CREAT_UNIV_ITERAT 10
#define MAP_ISLANDS 10		/* # of beginning islands for makeuniv */
#define MAP_MOUNT_PERCENT 0.22	/* percentage of mountain areas */
#define MAP_GASGIANT_BANDMIN 20  /* min size gasgiants that have bands */
#define LANDPERCENTAGE 0.45

#define GRAV_FACTOR 0.0025	/* not sure as to what this should be*/


#define FACTOR_FERT_SUPPORT 70
			       /* # of people/fert pt sector supports*/
#define EFF_PROD 		0.08		/* production of effcncy/pop*/
#define RESOURCE_PRODUCTION 	0.0220		/* adjust these to change prod*/
#define FUEL_PRODUCTION 	0.0110
#define DEST_PRODUCTION 	0.0045
#define MOB_COST		0.10   /* mobiliz.c, doplanet.c cost/mob point*/
#define RESOURCE_DEPLETION 	0.015
#define FACTOR_MOBPROD 		0.02	/* mobilization production/person */

#define FUEL_COST_TERRA		4	/* cost to terraform */

#define PLAN_FIRE_LIM		40	/* max fire strength from planets */

#define TECH_SEE_STABILITY 3	/* min tech to see star stability */
#define TECH_EXPLORE 	   6	/* min tech to see your whole planet */

#define PLANETGRAVCONST 	0.05
#define SYSTEMGRAVCONST 	0.05


#define DIST_TO_LAND 5.0 /* moveship -- distance ship has to be to land */
/*#define DIST_TO_BURN 50	 /* distance from sun needed to destroy ship */


#define FACTOR_DAMAGE 		388.0
#define FACTOR_DESTPLANET 	1.004
#define FACTOR_DAMAGE_DISTANCE 	1.00

	/* various compiler options that may save cpu time/disk space */
#define SHELL_DOTURN 1			/* put doturn() in shell */
					/*  to do this "doturn.o doplanet.o"
					/*  must be deleted from the "GB"
					/*  sources in the Makefile  */
#define NO_SLIDING_SCALE_AUTOMOVE 0	/* move to all four adjacent spots */
#define POPN_MOVE_SCALE_1 400		/* limit at which popn moves to all */
#define POPN_MOVE_SCALE_2 3000		/* " " " popn moves to 2 adj. spaces */
					/* otherwise move to only 1 adj. space*/


#define reg register
 /* to save object code */
#define getchr() fgetc(stdin)
#define putchr(c) fputc((c),stdout)
/* assorted macros */
 /* sign,abs val of number */
#define sgn(x) ( ((x)>=0) ? (1) : (-1))
#define abs(x) ( ( (x)<0) ? -(x) : (x) )
#define MIN(x,y) ( ((x)>(y)) ? (y) : (x) )
#define MAX(x,y) ( ((x)<(y)) ? (y) : (x) )
 /* positive modulus */
#define mod(a,b,dum) ((dum)=(a)%(b),abs(dum))
 /* swap two variables */
#define	swap(a, b)  ((a) ^= (b), (b) ^= (a), (a) ^= (b))
 /* euclidean distance */
#define Distsq(x1,y1,x2,y2) ( ((x1)-(x2))*((x1)-(x2)) + \
		((y1)-(y2))*((y1)-(y2)) )

/* look up sector */
#define Sector(pl,x,y) (Smap[(x) + (y)*(pl).Maxx])
/* adjust temperature to displayed */
#define Temp(x) (((int)x)*25)

 /* number of AP's to add to each player in ea. system */
 /*   (look in doturn)  */
#define LIMIT_APs 50	/* max # of APs you can have */

#define TYPE_EARTH 	0
#define TYPE_ASTEROID 	1
#define TYPE_AIRLESS 	2
#define TYPE_GASGIANT 	3

#define DES_SEA 	0
#define DES_LAND 	1
#define DES_MOUNT 	2
#define DES_GAS 	3
#define DES_ICE		4
#define DES_PLATED 	5

#define MAX_SECT_POPN 9999