git.shiar.nl
/
netris.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
code duplication
[netris.git]
/
netris.h
diff --git
a/netris.h
b/netris.h
index 28a4132403d7cdb66264aedf3e811d015e67bc95..31c08f1f1c4f905dc741abd193b7f73f74faa59b 100644
(file)
--- a/
netris.h
+++ b/
netris.h
@@
-57,7
+57,7
@@
typedef long netint4;
/* Protocol versions */
#define MAJOR_VERSION 1
/* Protocol versions */
#define MAJOR_VERSION 1
-#define PROTOCOL_VERSION
4
+#define PROTOCOL_VERSION
6
#define DEFAULT_PORT 9284 /* Very arbitrary */
#define DEFAULT_PORT 9284 /* Very arbitrary */
@@
-157,14
+157,14
@@
typedef struct {
int boardHeight, boardWidth, boardVisible;
int curX, curY;
char curShape, nextShape;
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
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
EXT short me;
EXT short maxPlayer;
EXT int spied; //in player.flags
@@
-180,10
+180,11
@@
typedef struct {
int started; //2
int continuous; //3
long seed; //4
int started; //2
int continuous; //3
long seed; //4
+ float shapes[7];
int initspeed; //5
int speed;
int initspeed; //5
int speed;
-}
_Game
;
-EXT
_Game
Game;
+}
game_t
;
+EXT
game_t
Game;
#define MSG_WIDTH 128
#define MSG_WIDTH 128