/* Protocol versions */
#define MAJOR_VERSION 1
-#define PROTOCOL_VERSION 4
+#define PROTOCOL_VERSION 6
#define DEFAULT_PORT 9284 /* Very arbitrary */
int bufSize, bufGoal;
} EventGenRec;
-MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event);
-
/* NP_startConn flags */
#define SCF_paused 1
int boardHeight, boardWidth, boardVisible;
int curX, curY;
char curShape, nextShape;
- struct _Score {
+ struct score_t {
short level;
long score;
int pieces, lines, adds;
} score;
char host[256]; //last
-} _Player;
-EXT _Player Players[MAX_SCREENS];
+} player_t;
+EXT player_t Players[MAX_SCREENS];
EXT short me;
EXT short maxPlayer;
EXT int spied; //in player.flags
int started; //2
int continuous; //3
long seed; //4
+ float shapes[7];
int initspeed; //5
int speed;
-} _Game;
-EXT _Game Game;
+} game_t;
+EXT game_t Game;
#define MSG_WIDTH 128