#include <stdlib.h>
#include <string.h>
-void attakreport(bool curt)
+void attakreport(bool curt)
+/* report status of bases under attack */
{
if (!curt) {
if (is_scheduled(FCDBAS)) {
}
-void report(void)
+void report(void)
+/* report on general game status */
{
char *s1,*s2,*s3;
}
void lrscan(void)
+/* long-range sensor scan */
{
int x, y;
chew();
}
void dreprt(void)
+/* damage report */
{
bool jdam = false;
int i;
}
}
-void chart(bool title)
+void chart(bool title)
+/* display the star chart */
{
int i,j;
chew();
}
static void sectscan(int goodScan, int i, int j)
+/* light up an individual dot in a sector */
{
if (goodScan || (abs(i-game.sector.x)<= 1 && abs(j-game.sector.y) <= 1)){
if ((game.quad[i][j]==IHMATER0)||(game.quad[i][j]==IHMATER1)||(game.quad[i][j]==IHMATER2)||(game.quad[i][j]==IHE)||(game.quad[i][j]==IHF)){
proutn("- ");
}
-static void status(int req)
+static void status(int req)
+/* print status report lines */
{
char *cp = NULL;
int t, dam = 0;
break;
case 10:
if (game.options & OPTION_WORLDS) {
- int here = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet;
- if (here != NOPLANET && game.state.plnets[here].inhabited != UNINHABITED)
- proutn(_("Major system %s"), systemname(here));
+ int plnet = game.state.galaxy[game.quadrant.x][game.quadrant.y].planet;
+ if (plnet != NOPLANET && game.state.plnets[plnet].inhabited != UNINHABITED)
+ proutn(_("Major system %s"), systemname(plnet));
else
proutn(_("Sector is uninhabited"));
}
}
}
-int srscan(int l)
+int srscan(int l)
+/* short-range scan */
{
/* the "sy" request is undocumented */
static char requests[][3] =
void eta(void)
+/* use computer to get estimated time of arrival for a warp jump */
{
int ix1, ix2, iy1, iy2;
bool wfl, prompt = false;