(plan): Condense columns LSB and nuke into column special. Rename

column s/l to carry.
This commit is contained in:
Markus Armbruster 2006-05-29 19:11:24 +00:00
parent 9a6016aecc
commit d5f8c32342
2 changed files with 26 additions and 35 deletions

View file

@ -1,19 +1,12 @@
.TH Command PLANE .TH Command PLANE
.NA plane "Report status of plane, wing or planes in a give area" .NA plane "Report status of planes"
.LV Basic .LV Basic
.SY "plane [<PLANE> | <SECTS>]" .SY "plane <PLANES>"
The plane report command is a census of your planes The plane report command is a census of your planes and lists all the
and lists all the information available in readable format. information available in readable format. For example:
.s1
The <PLANE> and <SECTS> arguments are provided in case you only
wish to look at one plane
or all planes within a given area.
.s1
Plane expects some argument. To see all planes, use the
argument '*', or enter "plane *".
.EX plane * .EX plane *
.NF .NF
# type x,y w eff mu def tech ran hard s/l LSB nuke # type x,y w eff mu def tech ran hard carry special
0 f2 P-51 Mustang 1,-1 100% 90 5 110 11 0 0 f2 P-51 Mustang 1,-1 100% 90 5 110 11 0
1 f2 P-51 Mustang 1,-1 100% 90 5 110 11 0 1 f2 P-51 Mustang 1,-1 100% 90 5 110 11 0
3 lb TBD-1 Devastato 1,-1 100% 90 4 120 11 0 3 lb TBD-1 Devastato 1,-1 100% 90 4 120 11 0
@ -26,29 +19,27 @@ The report format contains the following fields:
.L # .L #
the plane number the plane number
.L type .L type
the type of plane; \*Qfighter 1\*U, \*Qjet hvy bomber\*U, etc, the type of plane; \*Qfighter 1\*U, \*Qjet hvy bomber\*U, etc.,
.L x,y .L x,y
the plane's current location (relative to your capital), the plane's current location
.L w .L w
the \*Qair wing\*U designation letter, the \*Qair wing\*U designation letter (set by \*Qwingadd\*U command),
.L eff .L eff
the plane's efficiency, the plane's efficiency,
.L mu .L mu
the number of mobility points the plane has, the number of mobility points the plane has,
.L att .L def
the attack value of the plane (for air-to-air combat) the defense value of the plane (for air-to-air combat)
.L tech .L tech
the tech level at which it was created, the tech level at which it was created,
.L range .L range
and the range (in sectors) it can fly on a given mission. and the range (in sectors) it can fly in one sortie,
.L s/l .L carry
the ship or land unit the plane is on the ship or land unit the plane is on
.L LSB .L special
For satellites, LS stands for "launched?" and "Geo-synchroneous orbit?". shows \*Qorbit\*U or \*Qgeosync\*U for satellites in (geo-synchronous)
For planes or missiles armed with nukes, B will either have the value orbit, else nuclear armament type and programming (\*QA\*U for
"A" for airburst, or "G" for groundburst (see info arm). air burst, \*QG\*U for ground burst; see info \*Qarm\*U).
.L nuke
the type of nuke carried
.in .in
.s1 .s1
.SA "pstat, upgrade, arm, bomb, build, drop, fly, launch, paradrop, recon, satellite, scrap, wingadd, Planes" .SA "pstat, upgrade, arm, bomb, build, drop, fly, launch, paradrop, recon, satellite, scrap, wingadd, Planes"

View file

@ -30,6 +30,7 @@
* Known contributors to this file: * Known contributors to this file:
* Dave Pare, 1986 * Dave Pare, 1986
* Steve McClure, 2000 * Steve McClure, 2000
* Markus Armbruster, 2006
*/ */
#include <config.h> #include <config.h>
@ -59,7 +60,7 @@ plan(void)
if (nplanes++ == 0) { if (nplanes++ == 0) {
if (player->god) if (player->god)
pr("own "); pr("own ");
pr(" # type x,y w eff mu def tech ran hard s/l LSB nuke\n"); pr(" # type x,y w eff mu def tech ran hard carry special\n");
} }
if (player->god) if (player->god)
pr("%3d ", plane.pln_own); pr("%3d ", plane.pln_own);
@ -75,15 +76,14 @@ plan(void)
pr("%5dL", plane.pln_land); pr("%5dL", plane.pln_land);
else else
pr(" "); pr(" ");
if ((plchr[(int)plane.pln_type].pl_flags & (P_O | P_M)) == P_O) { if (plane.pln_flags & PLN_SYNCHRONOUS)
pr(" %c", (plane.pln_flags & PLN_LAUNCHED) ? 'Y' : 'N'); pr(" geosync");
pr("%c", (plane.pln_flags & PLN_SYNCHRONOUS) ? 'Y' : 'N'); else if (plane.pln_flags & PLN_LAUNCHED)
} else pr(" orbit");
pr(" "); else if (plane.pln_nuketype >= 0)
if (plane.pln_nuketype != -1) pr(" %-5.5s %c",
pr(" %c %-5.5s", nchr[(int)plane.pln_nuketype].n_name,
plane.pln_flags & PLN_AIRBURST ? 'A' : 'G', plane.pln_flags & PLN_AIRBURST ? 'A' : 'G');
nchr[(int)plane.pln_nuketype].n_name);
pr("\n"); pr("\n");
} }