diff options
author | rodri <rgl@antares-labs.eu> | 2023-09-27 15:59:53 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-09-27 15:59:53 +0000 |
commit | 8760478c61d8b96d9aab1511b8759daeb84378c5 (patch) | |
tree | d493b885609d1c18e3ae18f09609d30a05be2fb9 /dat.h | |
parent | 05825e751d69cde554c21ddfd00e646049425e31 (diff) | |
download | battleship-8760478c61d8b96d9aab1511b8759daeb84378c5.tar.gz battleship-8760478c61d8b96d9aab1511b8759daeb84378c5.tar.bz2 battleship-8760478c61d8b96d9aab1511b8759daeb84378c5.zip |
implemented spectator mode.
Diffstat (limited to 'dat.h')
-rw-r--r-- | dat.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -34,7 +34,7 @@ enum { SCRH = Boardmargin+MAPH*TH+TH+MAPH*TH+Boardmargin, KB = 1024, - BY2MAP = TBITS*MAPW*MAPH/8+1, + BY2MAP = (TBITS*MAPW*MAPH+7)/8, }; typedef struct Ship Ship; @@ -114,8 +114,12 @@ struct Stands struct MatchInfo { int id; - char *pl[2]; + struct { + char uid[8+1]; + int state; + } pl[2]; Board *bl[2]; + char conclusion[16]; }; typedef struct Mentry Mentry; |