Galactic Bloodshed
Macros | Enumerations | Variables
tweakables.h File Reference

Go to the source code of this file.

Macros

#define MOVE_FACTOR   1
 
#define DEFAULT_UPDATE_TIME   (30 * 60) /* update time (minutes!) */
 
#define DEFAULT_RANDOM_UPDATE_RANGE   0 /* again, in minutes. */
 
#define DEFAULT_RANDOM_SEGMENT_RANGE   0 /* again, in minutes. */
 
#define MOVES_PER_UPDATE   3
 
#define LOGIN_NAME_SIZE   64
 
#define COMMANDSIZE   42
 
#define MAXARGS   256
 
#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 LIMITED_RESOURCES
 
#define NAMESIZE   18
 
#define RNAMESIZE   35
 
#define MOTTOSIZE   64
 
#define PERSONALSIZE   128
 
#define PLACENAMESIZE   (NAMESIZE + NAMESIZE + 13)
 
#define NUMSTARS   256
 
#define MAXPLANETS   10
 
#define MAX_X   45 /* top range for planet */
 
#define MAX_Y   19
 
#define RATIOXY   3.70 /* map ratio between x and y */
 
#define UNIVSIZE   150000
 
#define SYSTEMSIZE   2000
 
#define PLORBITSIZE   50
 
#define VICTORY_PERCENT   10
 
#define VICTORY_UPDATES   5
 
#define AUTO_TELEG_SIZE   2000
 
#define UNTRANS_MSG   "[ ? ]"
 
#define TELEG_TRANS_RPCOST   5
 
#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 MASS_ARMOR   1.0
 
#define MASS_SIZE   0.2
 
#define MASS_HANGER   0.1
 
#define MASS_GUNS   0.2
 
#define SIZE_GUNS   0.1
 
#define SIZE_CREW   0.01
 
#define SIZE_RESOURCE   0.02
 
#define SIZE_FUEL   0.01
 
#define SIZE_DESTRUCT   0.02
 
#define SIZE_HANGER   0.1
 
#define HAB_FACT_SIZE   0.2
 
#define HAB_FACT_ON_COST   4
 
#define PLAN_FACT_ON_COST   2
 
#define SECTOR_DAMAGE   0.3
 
#define SHIP_DAMAGE   2.0
 
#define VN_RES_TAKE   0.5 /* amt of resource of a sector the VN's take */
 
#define LAUNCH_GRAV_MASS_FACTOR   0.18 /* fuel use modifier for taking off */
 
#define LAND_GRAV_MASS_FACTOR   0.0145
 
#define FUEL_GAS_ADD   5.0 /* amt of fuel to add to ea ships tanks */
 
#define FUEL_GAS_ADD_TANKER   100.0
 
#define FUEL_GAS_ADD_HABITAT   200.0
 
#define FUEL_GAS_ADD_STATION   100.0
 
#define FUEL_USE
 
#define HABITAT_PROD_RATE   0.05
 
#define HABITAT_POP_RATE   0.20
 
#define REPAIR_RATE   25.0 /* rate at which ships get repaired */
 
#define SECTOR_REPAIR_COST   10 /* how much it costs to remove a wasted status from a sector */
 
#define NATURAL_REPAIR
 
#define CREAT_UNIV_ITERAT   10 /* iterations for star movement */
 
#define GRAV_FACTOR   0.0025 /* not sure as to what this should be*/
 
#define FACTOR_FERT_SUPPORT   1
 
#define EFF_PROD   0.20 /* production of effcncy/pop*/
 
#define RESOURCE_PRODUCTION   0.00008 /* adjust these to change prod*/
 
#define FUEL_PRODUCTION   0.00008
 
#define DEST_PRODUCTION   0.00008
 
#define POPN_PROD   0.3
 
#define HYPER_DRIVE_READY_CHARGE   1
 
#define HYPER_DRIVE_FUEL_USE   5.0
 
#define HYPER_DIST_FACTOR   200.0
 
#define TECH_INVEST   0.01 /* invest factor */
 
#define TECH_SCALE   2.0 /* investment scale */
 
#define MOB_COST   0.00 /* mobiliz.c, planet.c cost/mob points*/
 
#define RESOURCE_DEPLETION   0.0
 
#define FACTOR_MOBPROD   0.06 /* mobilization production/person */
 
#define MESO_POP_SCALE   20000.0
 
#define FUEL_COST_TERRA   3.0 /* cost to terraform */
 
#define FUEL_COST_QUARRY   2.0 /* cost to mine resources */
 
#define FUEL_COST_PLOW   2.0
 
#define RES_COST_DOME   1
 
#define RES_COST_WPLANT   1
 
#define FUEL_COST_WPLANT   1.0
 
#define ENLIST_TROOP_COST   5 /* money it costs to pay a trooper */
 
#define UPDATE_TROOP_COST   1
 
#define PLAN_FIRE_LIM   20 /* max fire strength from planets */
 
#define TECH_SEE_STABILITY   15 /* min tech to see star stability */
 
#define TECH_EXPLORE   10 /* min tech to see your whole planet */
 
#define ENVIR_DAMAGE_TOX   70
 
#define PLANETGRAVCONST   0.05
 
#define SYSTEMGRAVCONST   150000.0
 
#define FUEL_MANEUVER   0.3 /* order.c-- fuel it costs to change aim */
 
#define DIST_TO_LAND   10.0 /* moveship.c,land.c -- */
 
#define DIST_TO_DOCK   10.0 /* changed to fix a bug. Maarten */
 
#define FACTOR_DAMAGE   2.0
 
#define FACTOR_DESTPLANET   0.35
 
#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 */
 
#define SHIP_MOVE_SCALE   3.0
 
#define getchr()   fgetc(stdin)
 
#define putchr(c)   fputc((c), stdout)
 
#define MIN(x, y)   (((x) > (y)) ? (y) : (x))
 
#define MAX(x, y)   (((x) < (y)) ? (y) : (x))
 
#define mod(a, b, dum)   ((dum) = (a) % (b), abs(dum))
 
#define Distsq(x1, y1, x2, y2)   (((x1) - (x2)) * ((x1) - (x2)) + ((y1) - (y2)) * ((y1) - (y2)))
 
#define Temp(x)   ((int)(x))
 
#define LIMIT_APs   255 /* max # of APs you can have */
 
#define EARTH_POINTS   int_rand(5, 8)
 
#define ASTEROID_POINTS   1
 
#define MARS_POINTS   int_rand(2, 3)
 
#define ICEBALL_POINTS   int_rand(2, 3)
 
#define GASGIANT_POINTS   int_rand(8, 20)
 
#define WATER_POINTS   int_rand(2, 3)
 
#define FOREST_POINTS   int_rand(2, 3)
 
#define DESERT_POINTS   int_rand(2, 3)
 
#define CIV   0
 
#define MIL   1
 
#define MAX_SECT_POPN   32767
 
#define TOXMAX   20 /* max a toxwc can hold */
 
#define RESOURCE   0 /* for market */
 
#define DESTRUCT   1
 
#define FUEL   2
 
#define CRYSTAL   3
 
#define MERCHANT_LENGTH   200000.0
 
#define INCOME_FACTOR   0.002
 
#define INSURG_FACTOR   1
 
#define UP_BID   0.10
 
#define GUN_COST   1.00
 
#define CREW_COST   0.05
 
#define CARGO_COST   0.05
 
#define FUEL_COST   0.05
 
#define AMMO_COST   0.05
 
#define SPEED_COST   0.50
 
#define CEW_COST   0.003
 
#define ARMOR_COST   3.50
 
#define HANGER_COST   0.50
 
#define AFV_FUEL_COST   1.0
 
#define MECH_ATTACK   3.0
 
#define SPORE_SUCCESS_RATE   25
 
#define CLIENT_CHAR   '|'
 
#define VICT_SECT   1000
 
#define VICT_SHIP   333
 
#define VICT_TECH   .10
 
#define VICT_MORALE   200
 
#define VICT_RES   100
 
#define VICT_FUEL   15
 
#define VICT_MONEY   5
 
#define VICT_DIVISOR   10000
 
#define STRIKE_DISTANCE_FACTOR   5.5
 
#define COMPLEXITY_FACTOR   10.0 /* determines steepness of design complexity function */
 
#define REPEAT_CHARACTER
 
#define MAXGOVERNORS   5u
 
#define POD_THRESHOLD   18
 
#define POD_DECAY   4
 
#define AP_FACTOR   50.0 /* how planet size affects the rate of atmosphere processing */
 
#define DISSIPATE   80 /* updates to dissipate dust and gases */
 

Enumerations

enum  PlanetType {
  EARTH = 0, ASTEROID = 1, MARS = 2, ICEBALL = 3,
  GASGIANT = 4, WATER = 5, FOREST = 6, DESERT = 7
}
 
enum  SectorType {
  SEC_SEA = 0, SEC_LAND = 1, SEC_MOUNT = 2, SEC_GAS = 3,
  SEC_ICE = 4, SEC_FOREST = 5, SEC_DESERT = 6, SEC_PLATED = 7,
  SEC_WASTED = 8
}
 

Variables

const char CHAR_CURR_SCOPE = ':'
 
const char CHAR_LAND = '*'
 
const char CHAR_SEA = '.'
 
const char CHAR_MOUNT = '^'
 
const char CHAR_DIFFOWNED = '?'
 
const char CHAR_PLATED = 'o'
 
const char CHAR_WASTED = '%'
 
const char CHAR_GAS = '~'
 
const char CHAR_CLOAKED = ' '
 
const char CHAR_ICE = '#'
 
const char CHAR_CRYSTAL = 'x'
 
const char CHAR_DESERT = '-'
 
const char CHAR_FOREST = ')'
 
const char CHAR_MY_TROOPS = 'X'
 
const char CHAR_ALLIED_TROOPS = 'A'
 
const char CHAR_ATWAR_TROOPS = 'E'
 
const char CHAR_NEUTRAL_TROOPS = 'N'
 

Macro Definition Documentation

◆ AFV_FUEL_COST

#define AFV_FUEL_COST   1.0

Definition at line 288 of file tweakables.h.

◆ AMMO_COST

#define AMMO_COST   0.05

Definition at line 282 of file tweakables.h.

◆ AP_FACTOR

#define AP_FACTOR   50.0 /* how planet size affects the rate of atmosphere processing */

Definition at line 315 of file tweakables.h.

◆ ARMOR_COST

#define ARMOR_COST   3.50

Definition at line 285 of file tweakables.h.

◆ ASTEROID_POINTS

#define ASTEROID_POINTS   1

Definition at line 241 of file tweakables.h.

◆ AUTO_TELEG_SIZE

#define AUTO_TELEG_SIZE   2000

Definition at line 87 of file tweakables.h.

◆ CARGO_COST

#define CARGO_COST   0.05

Definition at line 280 of file tweakables.h.

◆ CEW_COST

#define CEW_COST   0.003

Definition at line 284 of file tweakables.h.

◆ CIV

#define CIV   0

Definition at line 261 of file tweakables.h.

◆ CLIENT_CHAR

#define CLIENT_CHAR   '|'

Definition at line 294 of file tweakables.h.

◆ CO2

#define CO2   4

Definition at line 33 of file tweakables.h.

◆ COMMANDSIZE

#define COMMANDSIZE   42

Definition at line 26 of file tweakables.h.

◆ COMPLEXITY_FACTOR

#define COMPLEXITY_FACTOR   10.0 /* determines steepness of design complexity function */

Definition at line 306 of file tweakables.h.

◆ CREAT_UNIV_ITERAT

#define CREAT_UNIV_ITERAT   10 /* iterations for star movement */

Definition at line 145 of file tweakables.h.

◆ CREW_COST

#define CREW_COST   0.05

Definition at line 279 of file tweakables.h.

◆ CRYSTAL

#define CRYSTAL   3

Definition at line 271 of file tweakables.h.

◆ DEFAULT_RANDOM_SEGMENT_RANGE

#define DEFAULT_RANDOM_SEGMENT_RANGE   0 /* again, in minutes. */

Definition at line 18 of file tweakables.h.

◆ DEFAULT_RANDOM_UPDATE_RANGE

#define DEFAULT_RANDOM_UPDATE_RANGE   0 /* again, in minutes. */

Definition at line 17 of file tweakables.h.

◆ DEFAULT_UPDATE_TIME

#define DEFAULT_UPDATE_TIME   (30 * 60) /* update time (minutes!) */

Definition at line 16 of file tweakables.h.

◆ DESERT_POINTS

#define DESERT_POINTS   int_rand(2, 3)

Definition at line 247 of file tweakables.h.

◆ DEST_PRODUCTION

#define DEST_PRODUCTION   0.00008

Definition at line 155 of file tweakables.h.

◆ DESTRUCT

#define DESTRUCT   1

Definition at line 269 of file tweakables.h.

◆ DISSIPATE

#define DISSIPATE   80 /* updates to dissipate dust and gases */

Definition at line 317 of file tweakables.h.

◆ DIST_TO_DOCK

#define DIST_TO_DOCK   10.0 /* changed to fix a bug. Maarten */

Definition at line 195 of file tweakables.h.

◆ DIST_TO_LAND

#define DIST_TO_LAND   10.0 /* moveship.c,land.c -- */

Definition at line 194 of file tweakables.h.

◆ Distsq

#define Distsq (   x1,
  y1,
  x2,
  y2 
)    (((x1) - (x2)) * ((x1) - (x2)) + ((y1) - (y2)) * ((y1) - (y2)))

Definition at line 218 of file tweakables.h.

◆ EARTH_POINTS

#define EARTH_POINTS   int_rand(5, 8)

Definition at line 240 of file tweakables.h.

◆ EFF_PROD

#define EFF_PROD   0.20 /* production of effcncy/pop*/

Definition at line 151 of file tweakables.h.

◆ ENLIST_TROOP_COST

#define ENLIST_TROOP_COST   5 /* money it costs to pay a trooper */

Definition at line 178 of file tweakables.h.

◆ ENVIR_DAMAGE_TOX

#define ENVIR_DAMAGE_TOX   70

Definition at line 187 of file tweakables.h.

◆ FACTOR_DAMAGE

#define FACTOR_DAMAGE   2.0

Definition at line 199 of file tweakables.h.

◆ FACTOR_DESTPLANET

#define FACTOR_DESTPLANET   0.35

Definition at line 200 of file tweakables.h.

◆ FACTOR_FERT_SUPPORT

#define FACTOR_FERT_SUPPORT   1

Definition at line 149 of file tweakables.h.

◆ FACTOR_MOBPROD

#define FACTOR_MOBPROD   0.06 /* mobilization production/person */

Definition at line 168 of file tweakables.h.

◆ FOREST_POINTS

#define FOREST_POINTS   int_rand(2, 3)

Definition at line 246 of file tweakables.h.

◆ FUEL

#define FUEL   2

Definition at line 270 of file tweakables.h.

◆ FUEL_COST

#define FUEL_COST   0.05

Definition at line 281 of file tweakables.h.

◆ FUEL_COST_PLOW

#define FUEL_COST_PLOW   2.0

Definition at line 173 of file tweakables.h.

◆ FUEL_COST_QUARRY

#define FUEL_COST_QUARRY   2.0 /* cost to mine resources */

Definition at line 172 of file tweakables.h.

◆ FUEL_COST_TERRA

#define FUEL_COST_TERRA   3.0 /* cost to terraform */

Definition at line 171 of file tweakables.h.

◆ FUEL_COST_WPLANT

#define FUEL_COST_WPLANT   1.0

Definition at line 176 of file tweakables.h.

◆ FUEL_GAS_ADD

#define FUEL_GAS_ADD   5.0 /* amt of fuel to add to ea ships tanks */

Definition at line 128 of file tweakables.h.

◆ FUEL_GAS_ADD_HABITAT

#define FUEL_GAS_ADD_HABITAT   200.0

Definition at line 130 of file tweakables.h.

◆ FUEL_GAS_ADD_STATION

#define FUEL_GAS_ADD_STATION   100.0

Definition at line 131 of file tweakables.h.

◆ FUEL_GAS_ADD_TANKER

#define FUEL_GAS_ADD_TANKER   100.0

Definition at line 129 of file tweakables.h.

◆ FUEL_MANEUVER

#define FUEL_MANEUVER   0.3 /* order.c-- fuel it costs to change aim */

Definition at line 193 of file tweakables.h.

◆ FUEL_PRODUCTION

#define FUEL_PRODUCTION   0.00008

Definition at line 153 of file tweakables.h.

◆ FUEL_USE

#define FUEL_USE
Value:
0.02 /* fuel use per ship mass pt. per speed \
factor */

Definition at line 132 of file tweakables.h.

◆ GASGIANT_POINTS

#define GASGIANT_POINTS   int_rand(8, 20)

Definition at line 244 of file tweakables.h.

◆ getchr

#define getchr ( )    fgetc(stdin)

Definition at line 210 of file tweakables.h.

◆ GRAV_FACTOR

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

Definition at line 147 of file tweakables.h.

◆ GUN_COST

#define GUN_COST   1.00

Definition at line 278 of file tweakables.h.

◆ HAB_FACT_ON_COST

#define HAB_FACT_ON_COST   4

Definition at line 117 of file tweakables.h.

◆ HAB_FACT_SIZE

#define HAB_FACT_SIZE   0.2

Definition at line 114 of file tweakables.h.

◆ HABITAT_POP_RATE

#define HABITAT_POP_RATE   0.20

Definition at line 136 of file tweakables.h.

◆ HABITAT_PROD_RATE

#define HABITAT_PROD_RATE   0.05

Definition at line 135 of file tweakables.h.

◆ HANGER_COST

#define HANGER_COST   0.50

Definition at line 286 of file tweakables.h.

◆ HELIUM

#define HELIUM   8

Definition at line 37 of file tweakables.h.

◆ HYDROGEN

#define HYDROGEN   5

Definition at line 34 of file tweakables.h.

◆ HYPER_DIST_FACTOR

#define HYPER_DIST_FACTOR   200.0

Definition at line 160 of file tweakables.h.

◆ HYPER_DRIVE_FUEL_USE

#define HYPER_DRIVE_FUEL_USE   5.0

Definition at line 159 of file tweakables.h.

◆ HYPER_DRIVE_READY_CHARGE

#define HYPER_DRIVE_READY_CHARGE   1

Definition at line 158 of file tweakables.h.

◆ ICEBALL_POINTS

#define ICEBALL_POINTS   int_rand(2, 3)

Definition at line 243 of file tweakables.h.

◆ INCOME_FACTOR

#define INCOME_FACTOR   0.002

Definition at line 274 of file tweakables.h.

◆ INSURG_FACTOR

#define INSURG_FACTOR   1

Definition at line 275 of file tweakables.h.

◆ LAND_GRAV_MASS_FACTOR

#define LAND_GRAV_MASS_FACTOR   0.0145

Definition at line 126 of file tweakables.h.

◆ LAUNCH_GRAV_MASS_FACTOR

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

Definition at line 125 of file tweakables.h.

◆ LIMIT_APs

#define LIMIT_APs   255 /* max # of APs you can have */

Definition at line 226 of file tweakables.h.

◆ LIMITED_RESOURCES

#define LIMITED_RESOURCES
Value:
1 /* set to 0 if you want unlimited resource \
availability (pre 3.0)*/

Definition at line 62 of file tweakables.h.

◆ LOGIN_NAME_SIZE

#define LOGIN_NAME_SIZE   64

Definition at line 24 of file tweakables.h.

◆ MARS_POINTS

#define MARS_POINTS   int_rand(2, 3)

Definition at line 242 of file tweakables.h.

◆ MASS_ARMOR

#define MASS_ARMOR   1.0

Definition at line 101 of file tweakables.h.

◆ MASS_DESTRUCT

#define MASS_DESTRUCT   0.15

Definition at line 100 of file tweakables.h.

◆ MASS_FUEL

#define MASS_FUEL   0.05

Definition at line 98 of file tweakables.h.

◆ MASS_GUNS

#define MASS_GUNS   0.2

Definition at line 104 of file tweakables.h.

◆ MASS_HANGER

#define MASS_HANGER   0.1

Definition at line 103 of file tweakables.h.

◆ MASS_RESOURCE

#define MASS_RESOURCE   0.1

Definition at line 99 of file tweakables.h.

◆ MASS_SIZE

#define MASS_SIZE   0.2

Definition at line 102 of file tweakables.h.

◆ MAX

#define MAX (   x,
 
)    (((x) < (y)) ? (y) : (x))

Definition at line 214 of file tweakables.h.

◆ MAX_SECT_POPN

#define MAX_SECT_POPN   32767

Definition at line 264 of file tweakables.h.

◆ MAX_X

#define MAX_X   45 /* top range for planet */

Definition at line 75 of file tweakables.h.

◆ MAX_Y

#define MAX_Y   19

Definition at line 76 of file tweakables.h.

◆ MAXARGS

#define MAXARGS   256

Definition at line 27 of file tweakables.h.

◆ MAXGOVERNORS

#define MAXGOVERNORS   5u

Definition at line 312 of file tweakables.h.

◆ MAXPLANETS

#define MAXPLANETS   10

Definition at line 72 of file tweakables.h.

◆ MECH_ATTACK

#define MECH_ATTACK   3.0

Definition at line 290 of file tweakables.h.

◆ MERCHANT_LENGTH

#define MERCHANT_LENGTH   200000.0

Definition at line 273 of file tweakables.h.

◆ MESO_POP_SCALE

#define MESO_POP_SCALE   20000.0

Definition at line 169 of file tweakables.h.

◆ METHANE

#define METHANE   2 /* %age of gases for terraforming */

Definition at line 31 of file tweakables.h.

◆ MIL

#define MIL   1

Definition at line 262 of file tweakables.h.

◆ MIN

#define MIN (   x,
 
)    (((x) > (y)) ? (y) : (x))

Definition at line 213 of file tweakables.h.

◆ MOB_COST

#define MOB_COST   0.00 /* mobiliz.c, planet.c cost/mob points*/

Definition at line 165 of file tweakables.h.

◆ mod

#define mod (   a,
  b,
  dum 
)    ((dum) = (a) % (b), abs(dum))

Definition at line 216 of file tweakables.h.

◆ MOTTOSIZE

#define MOTTOSIZE   64

Definition at line 68 of file tweakables.h.

◆ MOVE_FACTOR

#define MOVE_FACTOR   1

Definition at line 14 of file tweakables.h.

◆ MOVES_PER_UPDATE

#define MOVES_PER_UPDATE   3

Definition at line 19 of file tweakables.h.

◆ NAMESIZE

#define NAMESIZE   18

Definition at line 66 of file tweakables.h.

◆ NATURAL_REPAIR

#define NATURAL_REPAIR
Value:
5 /* chance of the wasted status being removed/update \
*/

Definition at line 141 of file tweakables.h.

◆ NITROGEN

#define NITROGEN   6

Definition at line 35 of file tweakables.h.

◆ NO_SLIDING_SCALE_AUTOMOVE

#define NO_SLIDING_SCALE_AUTOMOVE   0 /* move to all four adjacent spots */

Definition at line 203 of file tweakables.h.

◆ NUMSTARS

#define NUMSTARS   256

Definition at line 71 of file tweakables.h.

◆ OTHER

#define OTHER   9

Definition at line 38 of file tweakables.h.

◆ OXYGEN

#define OXYGEN   3

Definition at line 32 of file tweakables.h.

◆ PERSONALSIZE

#define PERSONALSIZE   128

Definition at line 69 of file tweakables.h.

◆ PLACENAMESIZE

#define PLACENAMESIZE   (NAMESIZE + NAMESIZE + 13)

Definition at line 70 of file tweakables.h.

◆ PLAN_FACT_ON_COST

#define PLAN_FACT_ON_COST   2

Definition at line 118 of file tweakables.h.

◆ PLAN_FIRE_LIM

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

Definition at line 181 of file tweakables.h.

◆ PLANETGRAVCONST

#define PLANETGRAVCONST   0.05

Definition at line 190 of file tweakables.h.

◆ PLORBITSIZE

#define PLORBITSIZE   50

Definition at line 82 of file tweakables.h.

◆ POD_DECAY

#define POD_DECAY   4

Definition at line 314 of file tweakables.h.

◆ POD_THRESHOLD

#define POD_THRESHOLD   18

Definition at line 313 of file tweakables.h.

◆ POPN_MOVE_SCALE_1

#define POPN_MOVE_SCALE_1   400 /* limit at which popn moves to all */

Definition at line 204 of file tweakables.h.

◆ POPN_MOVE_SCALE_2

#define POPN_MOVE_SCALE_2   3000 /* " " " popn moves to 2 adj. spaces */

Definition at line 205 of file tweakables.h.

◆ POPN_PROD

#define POPN_PROD   0.3

Definition at line 156 of file tweakables.h.

◆ putchr

#define putchr (   c)    fputc((c), stdout)

Definition at line 211 of file tweakables.h.

◆ RATIOXY

#define RATIOXY   3.70 /* map ratio between x and y */

Definition at line 77 of file tweakables.h.

◆ REPAIR_RATE

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

Definition at line 138 of file tweakables.h.

◆ REPEAT_CHARACTER

#define REPEAT_CHARACTER
Value:
' ' /* this character makes the previous command to \
repeat */

Definition at line 309 of file tweakables.h.

◆ RES_COST_DOME

#define RES_COST_DOME   1

Definition at line 174 of file tweakables.h.

◆ RES_COST_WPLANT

#define RES_COST_WPLANT   1

Definition at line 175 of file tweakables.h.

◆ RESOURCE

#define RESOURCE   0 /* for market */

Definition at line 268 of file tweakables.h.

◆ RESOURCE_DEPLETION

#define RESOURCE_DEPLETION   0.0

Definition at line 167 of file tweakables.h.

◆ RESOURCE_PRODUCTION

#define RESOURCE_PRODUCTION   0.00008 /* adjust these to change prod*/

Definition at line 152 of file tweakables.h.

◆ RNAMESIZE

#define RNAMESIZE   35

Definition at line 67 of file tweakables.h.

◆ RTEMP

#define RTEMP   0 /* regular temp for planet */

Definition at line 29 of file tweakables.h.

◆ SECTOR_DAMAGE

#define SECTOR_DAMAGE   0.3

Definition at line 120 of file tweakables.h.

◆ SECTOR_REPAIR_COST

#define SECTOR_REPAIR_COST   10 /* how much it costs to remove a wasted status from a sector */

Definition at line 139 of file tweakables.h.

◆ SHIP_DAMAGE

#define SHIP_DAMAGE   2.0

Definition at line 121 of file tweakables.h.

◆ SHIP_MOVE_SCALE

#define SHIP_MOVE_SCALE   3.0

Definition at line 207 of file tweakables.h.

◆ SIZE_CREW

#define SIZE_CREW   0.01

Definition at line 107 of file tweakables.h.

◆ SIZE_DESTRUCT

#define SIZE_DESTRUCT   0.02

Definition at line 110 of file tweakables.h.

◆ SIZE_FUEL

#define SIZE_FUEL   0.01

Definition at line 109 of file tweakables.h.

◆ SIZE_GUNS

#define SIZE_GUNS   0.1

Definition at line 106 of file tweakables.h.

◆ SIZE_HANGER

#define SIZE_HANGER   0.1

Definition at line 111 of file tweakables.h.

◆ SIZE_RESOURCE

#define SIZE_RESOURCE   0.02

Definition at line 108 of file tweakables.h.

◆ SPEED_COST

#define SPEED_COST   0.50

Definition at line 283 of file tweakables.h.

◆ SPORE_SUCCESS_RATE

#define SPORE_SUCCESS_RATE   25

Definition at line 292 of file tweakables.h.

◆ STRIKE_DISTANCE_FACTOR

#define STRIKE_DISTANCE_FACTOR   5.5

Definition at line 305 of file tweakables.h.

◆ SULFUR

#define SULFUR   7

Definition at line 36 of file tweakables.h.

◆ SYSTEMGRAVCONST

#define SYSTEMGRAVCONST   150000.0

Definition at line 191 of file tweakables.h.

◆ SYSTEMSIZE

#define SYSTEMSIZE   2000

Definition at line 81 of file tweakables.h.

◆ TECH_EXPLORE

#define TECH_EXPLORE   10 /* min tech to see your whole planet */

Definition at line 185 of file tweakables.h.

◆ TECH_INVEST

#define TECH_INVEST   0.01 /* invest factor */

Definition at line 162 of file tweakables.h.

◆ TECH_SCALE

#define TECH_SCALE   2.0 /* investment scale */

Definition at line 163 of file tweakables.h.

◆ TECH_SEE_STABILITY

#define TECH_SEE_STABILITY   15 /* min tech to see star stability */

Definition at line 183 of file tweakables.h.

◆ TELEG_DELIM

#define TELEG_DELIM   '~'

Definition at line 95 of file tweakables.h.

◆ TELEG_LETTERS

#define TELEG_LETTERS   7

Definition at line 92 of file tweakables.h.

◆ TELEG_MAX_AUTO

#define TELEG_MAX_AUTO   7 /* when changing, alter field in plinfo */

Definition at line 94 of file tweakables.h.

◆ TELEG_NDELIM

#define TELEG_NDELIM   "%[^~]"

Definition at line 96 of file tweakables.h.

◆ TELEG_PLAYER_AUTO

#define TELEG_PLAYER_AUTO   (-2)

Definition at line 93 of file tweakables.h.

◆ TELEG_TRANS_AMT

#define TELEG_TRANS_AMT   0.45

Definition at line 91 of file tweakables.h.

◆ TELEG_TRANS_RPCOST

#define TELEG_TRANS_RPCOST   5

Definition at line 90 of file tweakables.h.

◆ TEMP

#define TEMP   1 /* temperature */

Definition at line 30 of file tweakables.h.

◆ Temp

#define Temp (   x)    ((int)(x))

Definition at line 222 of file tweakables.h.

◆ TOXIC

#define TOXIC   10

Definition at line 39 of file tweakables.h.

◆ TOXMAX

#define TOXMAX   20 /* max a toxwc can hold */

Definition at line 266 of file tweakables.h.

◆ UNIVSIZE

#define UNIVSIZE   150000

Definition at line 80 of file tweakables.h.

◆ UNTRANS_MSG

#define UNTRANS_MSG   "[ ? ]"

Definition at line 88 of file tweakables.h.

◆ UP_BID

#define UP_BID   0.10

Definition at line 276 of file tweakables.h.

◆ UPDATE_TROOP_COST

#define UPDATE_TROOP_COST   1

Definition at line 179 of file tweakables.h.

◆ VICT_DIVISOR

#define VICT_DIVISOR   10000

Definition at line 303 of file tweakables.h.

◆ VICT_FUEL

#define VICT_FUEL   15

Definition at line 301 of file tweakables.h.

◆ VICT_MONEY

#define VICT_MONEY   5

Definition at line 302 of file tweakables.h.

◆ VICT_MORALE

#define VICT_MORALE   200

Definition at line 299 of file tweakables.h.

◆ VICT_RES

#define VICT_RES   100

Definition at line 300 of file tweakables.h.

◆ VICT_SECT

#define VICT_SECT   1000

Definition at line 296 of file tweakables.h.

◆ VICT_SHIP

#define VICT_SHIP   333

Definition at line 297 of file tweakables.h.

◆ VICT_TECH

#define VICT_TECH   .10

Definition at line 298 of file tweakables.h.

◆ VICTORY_PERCENT

#define VICTORY_PERCENT   10

Definition at line 84 of file tweakables.h.

◆ VICTORY_UPDATES

#define VICTORY_UPDATES   5

Definition at line 85 of file tweakables.h.

◆ VN_RES_TAKE

#define VN_RES_TAKE   0.5 /* amt of resource of a sector the VN's take */

Definition at line 123 of file tweakables.h.

◆ WATER_POINTS

#define WATER_POINTS   int_rand(2, 3)

Definition at line 245 of file tweakables.h.

Enumeration Type Documentation

◆ PlanetType

enum PlanetType
Enumerator
EARTH 
ASTEROID 
MARS 
ICEBALL 
GASGIANT 
WATER 
FOREST 
DESERT 

Definition at line 228 of file tweakables.h.

◆ SectorType

enum SectorType
Enumerator
SEC_SEA 
SEC_LAND 
SEC_MOUNT 
SEC_GAS 
SEC_ICE 
SEC_FOREST 
SEC_DESERT 
SEC_PLATED 
SEC_WASTED 

Definition at line 249 of file tweakables.h.

Variable Documentation

◆ CHAR_ALLIED_TROOPS

const char CHAR_ALLIED_TROOPS = 'A'

Definition at line 57 of file tweakables.h.

◆ CHAR_ATWAR_TROOPS

const char CHAR_ATWAR_TROOPS = 'E'

Definition at line 58 of file tweakables.h.

◆ CHAR_CLOAKED

const char CHAR_CLOAKED = ' '

Definition at line 50 of file tweakables.h.

◆ CHAR_CRYSTAL

const char CHAR_CRYSTAL = 'x'

Definition at line 52 of file tweakables.h.

◆ CHAR_CURR_SCOPE

const char CHAR_CURR_SCOPE = ':'

Definition at line 41 of file tweakables.h.

◆ CHAR_DESERT

const char CHAR_DESERT = '-'

Definition at line 53 of file tweakables.h.

◆ CHAR_DIFFOWNED

const char CHAR_DIFFOWNED = '?'

Definition at line 46 of file tweakables.h.

◆ CHAR_FOREST

const char CHAR_FOREST = ')'

Definition at line 54 of file tweakables.h.

◆ CHAR_GAS

const char CHAR_GAS = '~'

Definition at line 49 of file tweakables.h.

◆ CHAR_ICE

const char CHAR_ICE = '#'

Definition at line 51 of file tweakables.h.

◆ CHAR_LAND

const char CHAR_LAND = '*'

Definition at line 43 of file tweakables.h.

◆ CHAR_MOUNT

const char CHAR_MOUNT = '^'

Definition at line 45 of file tweakables.h.

◆ CHAR_MY_TROOPS

const char CHAR_MY_TROOPS = 'X'

Definition at line 56 of file tweakables.h.

◆ CHAR_NEUTRAL_TROOPS

const char CHAR_NEUTRAL_TROOPS = 'N'

Definition at line 59 of file tweakables.h.

◆ CHAR_PLATED

const char CHAR_PLATED = 'o'

Definition at line 47 of file tweakables.h.

◆ CHAR_SEA

const char CHAR_SEA = '.'

Definition at line 44 of file tweakables.h.

◆ CHAR_WASTED

const char CHAR_WASTED = '%'

Definition at line 48 of file tweakables.h.