enum {M=0, N=1, O=2} pclass;
int inhabited; /* if NZ, an index into a name array */
#define UNINHABITED -1
enum {M=0, N=1, O=2} pclass;
int inhabited; /* if NZ, an index into a name array */
#define UNINHABITED -1
- int crystals; /* has crystals */
-#define MINED -1 /* used to have crystals, but they were mined out */
+ enum {mined=-1, present=0, absent=1} crystals; /* has crystals */
- int snap, // snapshot taken
- crew, // crew complement
+ bool snap; // snapshot taken
+ int crew, // crew complement
#define FULLCREW 428 /* BSD Trek was 387, that's wrong */
remkl, // remaining klingons
remcom, // remaining commanders
#define FULLCREW 428 /* BSD Trek was 387, that's wrong */
remkl, // remaining klingons
remcom, // remaining commanders
int klingons;
} chart[GALSIZE+1][GALSIZE+1]; // the starchart (subscript 0 not used)
} snapshot; // Data that is snapshot
int klingons;
} chart[GALSIZE+1][GALSIZE+1]; // the starchart (subscript 0 not used)
} snapshot; // Data that is snapshot
#define INKLINGTOT (game.inkling + game.incom + game.inscom)
#define KLINGKILLED (INKLINGTOT - KLINGREM)
#define INKLINGTOT (game.inkling + game.incom + game.inscom)
#define KLINGKILLED (INKLINGTOT - KLINGREM)
alive, // we are alive (not killed)
justin, // just entered quadrant
shldup, // shields are up
alive, // we are alive (not killed)
justin, // just entered quadrant
shldup, // shields are up
comhere, // commander here
ishere, // super-commander in quadrant
comhere, // commander here
ishere, // super-commander in quadrant
ientesc, // attempted escape from supercommander
ithere, // Tholian is here
resting, // rest time
icraft, // Kirk in Galileo
ientesc, // attempted escape from supercommander
ithere, // Tholian is here
resting, // rest time
icraft, // Kirk in Galileo
alldone, // game is now finished
neutz, // Romulan Neutral Zone
isarmed, // probe is armed
alldone, // game is now finished
neutz, // Romulan Neutral Zone
isarmed, // probe is armed
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
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
torps, // number of torpedoes
ship, // ship type -- 'E' is Enterprise
abandoned, // count of crew abandoned in space
length, // length of game
torps, // number of torpedoes
ship, // ship type -- 'E' is Enterprise
abandoned, // count of crew abandoned in space
length, // length of game
iplnet, // planet # in quadrant
inplan, // initial planets
nenhere, // number of enemies in quadrant
irhere, // Romulans in quadrant
iplnet, // planet # in quadrant
inplan, // initial planets
nenhere, // number of enemies in quadrant
irhere, // Romulans in quadrant
tourn, // tournament number
proben, // number of moves for probe
nprobes; // number of probes available
tourn, // tournament number
proben, // number of moves for probe
nprobes; // number of probes available
void ram(bool, feature, coord);
void crmena(bool, feature, enum loctype, coord w);
void deadkl(coord, feature, coord);
void ram(bool, feature, coord);
void crmena(bool, feature, enum loctype, coord w);
void deadkl(coord, feature, coord);