long nat_flags; /* nation flags */
};
- /* nstat values */
-#define VIS bit(0)
-#define SANCT (bit(1) | VIS)
-#define NORM (bit(2) | VIS)
-#define GOD (bit(3) | NORM | VIS)
-#define CAP bit(6)
-#define MONEY bit(7)
-
/* nation relation codes */
#define AT_WAR 0
#define SITZKRIEG 1
#include "queue.h"
#include "types.h"
+ /* nstat values */
+#define VIS bit(0)
+#define SANCT (bit(1) | VIS)
+#define NORM (bit(2) | VIS)
+#define GOD (bit(3) | NORM | VIS)
+#define CAP bit(6)
+#define MONEY bit(7)
+
struct player {
struct emp_qelem queue;
empth_t *proc;
char combuf[1024]; /* command input buffer, UTF-8 */
char *argp[128]; /* arguments, ASCII */
char *condarg; /* conditional, ASCII */
- time_t lasttime;
+ time_t lasttime; /* when to debit minleft again */
int ncomstat;
int minleft;
int btused;
int simulation; /* e.g. budget command */
double dolcost;
int broke;
- time_t curup; /* used in calc of minutes used */
+ time_t curup; /* when last input was received */
int aborted;
int curid; /* for pr, cur. line's id, -1 none */
char *map; /* pointer to in-mem map */
};
#define PS_INIT 0
-#define PS_LOGIN 1
-#define PS_PLAYING 2
-#define PS_SHUTDOWN 3
+#define PS_PLAYING 1
+#define PS_SHUTDOWN 2
/* player flags */
enum {