/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2011, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2018, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
#include <stdio.h>
#include <time.h>
#include "com.h"
-#include "empio.h"
-#include "file.h"
#include "game.h"
#include "match.h"
#include "misc.h"
#include "nat.h"
#include "optlist.h"
#include "player.h"
-#include "proto.h"
#include "prototypes.h"
static void disable_coms(void);
/*
- * Get a command from the current player into COMBUFP[1024], in UTF-8.
+ * Get a command from the current player into @combufp[1024], in UTF-8.
* This may block for input, yielding the processor. Flush buffered
* output when blocking, to make sure player sees the prompt.
* Return command's byte length on success, -1 on error.
int
getcommand(char *combufp)
{
- struct natstr *natp = getnatp(player->cnum);
char buf[1024]; /* user text */
- prprompt(natp->nat_timeused / 60, natp->nat_btu);
if (recvclient(buf, sizeof(buf)) < 0)
return -1;
pr("\t\tCurrent EMPIRE Command List\n"
"\t\t------- ------ ------- ----\n"
- "Initial number is cost in B.T.U. units.\n"
+ "Initial number is cost in BTUs.\n"
"Next 2 chars (if present) are:\n"
"$ - must be non-broke\tc -- must have capital\n"
- "Args in [brackets] are optional.\n"
- "All-caps args in <angle brackets>"
+ "Arguments in [brackets] are optional.\n"
+ "All-caps arguments in <angle brackets>"
" have the following meanings:\n"
/* FIXME incomplete */
" <NUM> :: a number in unspecified units\n"