+ coord ks[(QUADSIZE+1)*(QUADSIZE+1)]; // enemy sector locations
+ coord quadrant, sector; // where we are
+ coord tholian; // coordinates of Tholian
+ coord base; // position of base in current quadrant
+ coord battle; // base coordinates being attacked
+ coord plnet; // location of planet in quadrant
+ coord probec; // current probe quadrant
+ bool gamewon, // Finished!
+ ididit, // action taken -- allows enemy to attack
+ alive, // we are alive (not killed)
+ justin, // just entered quadrant
+ shldup, // shields are up
+ shldchg, // shield is changing (affects efficiency)
+ comhere, // commander here
+ ishere, // super-commander in quadrant
+ iscate, // super commander is here
+ ientesc, // attempted escape from supercommander
+ ithere, // Tholian is here
+ resting, // rest time
+ icraft, // Kirk in Galileo
+ landed, // party on planet (true), on ship (false)
+ alldone, // game is now finished
+ neutz, // Romulan Neutral Zone
+ isarmed, // probe is armed
+ inorbit, // orbiting a planet
+ imine, // mining
+ icrystl, // dilithium crystals aboard
+ iseenit, // seen base attack report
+ thawed; // thawed game
+ enum {
+ green,
+ yellow,
+ red,
+ docked,
+ dead,
+ } condition; // condition (red/yellow/green/docked)
+ enum {
+ onship,
+ offship,
+ removed,
+ } iscraft; // 'onship' if craft on ship, 'removed' if out of game
+ enum {
+ SKILL_NONE,
+ SKILL_NOVICE,
+ SKILL_FAIR,
+ SKILL_GOOD,
+ SKILL_EXPERT,
+ SKILL_EMERITUS,
+ } skill; // skill level
+ int inkling, // initial number of klingons
+ inbase, // initial number of bases
+ incom, // initial number of commanders
+ inscom, // initial number of commanders
+ inrom, // initial number of commanders
+ instar, // initial stars
+ intorps, // initial/max torpedoes
+ torps, // number of torpedoes
+ ship, // ship type -- 'E' is Enterprise
+ abandoned, // count of crew abandoned in space
+ length, // length of game
+ klhere, // klingons here
+ casual, // causalties
+ nhelp, // calls for help
+ nkinks, // count of energy-barrier crossings
+ iplnet, // planet # in quadrant
+ inplan, // initial planets
+ nenhere, // number of enemies in quadrant
+ irhere, // Romulans in quadrant
+ isatb, // =1 if super commander is attacking base
+ tourn, // tournament number
+ proben, // number of moves for probe
+ nprobes; // number of probes available
+ double inresor, // initial resources
+ intime, // initial time
+ inenrg, // initial/max energy
+ inshld, // initial/max shield
+ inlsr, // initial life support resources
+ indate, // initial date
+ energy, // energy level
+ shield, // shield level
+ warpfac, // warp speed
+ wfacsq, // squared warp factor
+ lsupres, // life support reserves
+ dist, // movement distance
+ direc, // movement direction
+ optime, // time taken by current operation
+ docfac, // repair factor when docking (constant?)
+ damfac, // damage factor
+ lastchart, // time star chart was last updated
+ cryprob, // probability that crystal will work
+ probex, // location of probe
+ probey, //
+ probeinx, // probe x,y increment
+ probeiny, //
+ height; // height of orbit around planet