/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* show.c: Give info on empire objects, planes, boats, nukes, etc.
- *
+ *
* Known contributors to this file:
* Julian Onions, 1988
* Steve McClure, 1997
#include <config.h>
-#include "misc.h"
-#include "player.h"
-#include "nat.h"
-#include "file.h"
-#include "optlist.h"
-#include "subs.h"
#include "commands.h"
+#include "nuke.h"
+#include "optlist.h"
int
show(void)
int rlev;
if (!(p = getstarg(player->argp[1],
- "Describe what (plane, nuke, bridge, ship, sect, land unit, tower, item)? ",
+ "Show what (bridge, item, land, nuke, plane, sect, ship, tower, updates)? ",
buf))
|| !*p)
return RET_SYN;
}
if (player->god)
rlev = 1000;
- pr("Printing for tech level '%d'\n", tlev);
switch (*p) {
case 'b':
show_bridge(99999);
cfunc = show_land_capab;
break;
case 'p':
+ if (p[1] == 'r') {
+ show_product(99999);
+ return RET_OK;
+ }
bfunc = show_plane_build;
sfunc = show_plane_stats;
cfunc = show_plane_capab;
cfunc = show_ship_capab;
}
break;
+ case 'u':
+ show_updates(player->argp[2] ? atoi(player->argp[2]) : 8);
+ return RET_OK;
default:
return RET_SYN;
}
+
if (!(p = getstarg(player->argp[2],
"Build, stats, or capability data (b,s,c)? ", buf))
|| !*p)
return RET_SYN;
+ pr("Printing for tech level '%d'\n", tlev);
if (*p == 'B' || *p == 'b')
bfunc(tlev);
else if (*p == 'C' || *p == 'c')