aboutsummaryrefslogtreecommitdiff
path: root/dat.h
diff options
context:
space:
mode:
Diffstat (limited to 'dat.h')
-rw-r--r--dat.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/dat.h b/dat.h
index db614db..6c443c0 100644
--- a/dat.h
+++ b/dat.h
@@ -33,9 +33,11 @@ enum {
typedef struct Input Input;
typedef struct Ship Ship;
+typedef struct Map Map;
typedef struct Board Board;
typedef struct Player Player;
typedef struct Playerq Playerq;
+typedef struct Match Match;
typedef struct Chanpipe Chanpipe;
struct Input
@@ -54,15 +56,21 @@ struct Ship
int sunk;
};
+struct Map
+{
+ char map[MAPW][MAPH];
+};
+
struct Board
{
RFrame;
- char map[17][17];
+ Map;
Rectangle bbox;
};
struct Player
{
+ Map;
int fd;
int sfd;
int state;
@@ -76,6 +84,11 @@ struct Playerq
ulong nplayers;
};
+struct Match
+{
+ Player *pl[2];
+};
+
struct Chanpipe
{
Channel *c;