worlds enabled, they must have one in the quadrant to beam down
to; otherwise they die in space and this counts heavily against
your score. Docking at a starbase replenishes your crew.
+
+ 8. Still more BSD-Trek: we now have a weighted damage table.
+ Also, the nav subsystem (enabling automatic course
+ setting) can be damaged separately from the main computer (which
+ handles weapons targeting, ETA calculation, and self-destruct).
*/
/* the input queue */
"Subspace Radio",
"Shuttle Craft",
"Computer",
+ "Navigation System",
"Transporter",
"Shield Control",
"Death Ray",
drawmaps(1);
for(;;) { /* get a command */
hitme = false;
- game.justin = 0;
+ game.justin = false;
game.optime = 0.0;
i = -1;
chew();
warp(false);
break;
case SHIELDS: // shields
- doshield(1);
+ doshield(false);
if (game.ididit) {
- hitme=true;
- game.shldchg = 0;
+ hitme = true;
+ game.shldchg = false;
}
break;
case DOCK: // dock
}
-void cramen(int i)
+void cramen(feature i)
/* print the name of an enemy */
{
/* return an enemy */
return buf;
}
-void crmena(bool stars, int enemy, enum loctype key, coord w)
+void crmena(bool stars, feature enemy, enum loctype key, coord w)
/* print an enemy and his location */
{
if (stars) proutn("***");
return rand()/(1.0 + (double)RAND_MAX);
}
-coord iran(int size)
+coord randplace(int size)
/* choose a random location */
{
coord w;
prout("Beg your pardon, Captain?");
}
-int isit(char *s)
+bool isit(char *s)
/* compares s to citem and returns true if it matches to the length of s */
{
return strncasecmp(s, citem, max(1, strlen(citem))) == 0;