aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-09-27 15:59:53 +0000
committerrodri <rgl@antares-labs.eu>2023-09-27 15:59:53 +0000
commit8760478c61d8b96d9aab1511b8759daeb84378c5 (patch)
treed493b885609d1c18e3ae18f09609d30a05be2fb9 /dat.h
parent05825e751d69cde554c21ddfd00e646049425e31 (diff)
downloadbattleship-8760478c61d8b96d9aab1511b8759daeb84378c5.tar.gz
battleship-8760478c61d8b96d9aab1511b8759daeb84378c5.tar.bz2
battleship-8760478c61d8b96d9aab1511b8759daeb84378c5.zip
implemented spectator mode.
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/dat.h b/dat.h
index bef3596..f53caf9 100644
--- a/dat.h
+++ b/dat.h
@@ -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;