#include <math.h>
#include <stdlib.h>
#include <string.h>
-#include "conio.h"
void attakreport(int l) {
if (!l) {
case IHRED: textcolor(RED); break;
case IHGREEN: textcolor(GREEN); break;
case IHYELLOW: textcolor(YELLOW); break;
- case IHDOCKED: textcolor(LIGHTGRAY); break;
- case IHDEAD: textcolor(WHITE);
+ case IHDOCKED: textcolor(CYAN); break;
+ case IHDEAD: textcolor(BROWN);
}
- if (game.quad[i][j]!=ship) highvideo();
+ if (game.quad[i][j] != ship)
+ highvideo();
}
- if (game.quad[i][j] & 128) highvideo();
- proutn("%c ",game.quad[i][j] & 127);
- textcolor(LIGHTGRAY);
+ if (game.quad[i][j] & DAMAGED)
+ highvideo();
+ proutn("%c ",game.quad[i][j] & ~DAMAGED);
+ textcolor(DEFAULT);
}
else
proutn("- ");
break;
case 6:
proutn("Energy %.2f", energy);
+ if (icrystl)
+ proutn(" (crystals on board)");
break;
case 7:
proutn("Torpedoes %d", torps);