/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2011, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2015, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure, Markus Armbruster
*
* Empire is free software: you can redistribute it and/or modify
* Known contributors to this file:
* Dave Pare, 1994
* Doug Hay, 1998
- * Markus Armbruster, 2005-2012
+ * Markus Armbruster, 2005-2014
*/
#ifndef PLAYER_H
#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 EXEC bit(5)
-#define CAP bit(6)
-#define MONEY bit(7)
+ /* player command capabilities */
+#define NONVIS bit(0) /* can execute common commands (visitors can't) */
+#define SANCT bit(1) /* can execute commands available in sanctuary */
+#define NORM bit(2) /* can execute active player commands */
+#define GOD bit(3) /* can execute deity commands */
+#define TESTING bit(4) /* can execute commands meant for test suite */
+#define EXEC bit(5) /* can execute the execute command */
+#define CAP bit(6) /* has capital */
+#define MONEY bit(7) /* isn't broke */
enum player_sleep {
PLAYER_SLEEP_NEVER, PLAYER_SLEEP_ON_INPUT, PLAYER_SLEEP_FREELY
struct emp_qelem queue;
empth_t *proc;
char hostaddr[46];
- char hostname[512]; /* may be empty */
char client[128]; /* may be empty */
char userid[32]; /* may be empty */
int authenticated;