summaryrefslogtreecommitdiff
path: root/src/pnoc.h
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2011-01-23 19:09:02 +0100
committerReiner Herrmann <reiner@reiner-h.de>2011-01-23 19:09:02 +0100
commit6d306058415fec04f5e56421af1d95abb4620767 (patch)
tree7ef46821163f817881d5ce3c23d67f5bc743d5f0 /src/pnoc.h
parentc5826edc22894af945509905eeb7a155b8ce2d87 (diff)
started refactoring: separate server process for local client; moved net code from main.c to game.c
Diffstat (limited to 'src/pnoc.h')
-rw-r--r--src/pnoc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pnoc.h b/src/pnoc.h
index bfff947..8ef8606 100644
--- a/src/pnoc.h
+++ b/src/pnoc.h
@@ -1,11 +1,13 @@
#ifndef OXEN_PNOC_H
#define OXEN_PNOC_H
-#include "player.h"
#include "card.h"
+#define MAX_PLAYER_NAME_LENGTH 10
+
typedef struct
{
+ uint8_t player_id;
char player_name[MAX_PLAYER_NAME_LENGTH+1]; // Player name length + 1 for string termination
card open_card;
} pnoc_t;