git.shiar.nl
/
netris.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
team names defined in global include
[netris.git]
/
netris.h
diff --git
a/netris.h
b/netris.h
index 489dfaccdb4aa2a03a049f96c016de579f737cd8..6cc395ca2c9edb9b0db31e57afc7249a56646998 100644
(file)
--- a/
netris.h
+++ b/
netris.h
@@
-78,7
+78,6
@@
typedef long netint4;
#define EM_connect 000020
#define EM_any 000777
#define EM_connect 000020
#define EM_any 000777
-typedef enum _GameType { GT_onePlayer, GT_classicTwo, GT_len } GameType;
typedef enum _BlockTypeA {
BT_shadow, BT_none,
BT_S, BT_L, BT_I, BT_O, BT_Z, BT_J, BT_T,
typedef enum _BlockTypeA {
BT_shadow, BT_none,
BT_S, BT_L, BT_I, BT_O, BT_Z, BT_J, BT_T,
@@
-161,7
+160,6
@@
typedef struct {
char name[16];
int flags;
int team;
char name[16];
int flags;
int team;
- int dropmode;
int boardHeight, boardWidth, boardVisible;
int curX, curY;
char curShape, nextShape;
int boardHeight, boardWidth, boardVisible;
int curX, curY;
char curShape, nextShape;
@@
-181,7
+179,9
@@
EXT int spied; //in player.flags
#define SPEEDINC 1.2
#define SPEEDMINIMUM 40000
#define SPEEDINC 1.2
#define SPEEDMINIMUM 40000
+typedef enum _GameType { GT_onePlayer, GT_classicTwo, GT_len } GameType;
typedef struct {
typedef struct {
+ GameType type;
int gravity; //1
int started; //2
int continuous; //3
int gravity; //1
int started; //2
int continuous; //3
@@
-193,9
+193,12
@@
EXT _Game Game;
#define MSG_WIDTH 128
#define MSG_WIDTH 128
-EXT GameType game; // => Game.type
-
EXT short port; // => just in client.c, parameter to inet connect
EXT short port; // => just in client.c, parameter to inet connect
+static const char teamname[10][7] = {
+ "", "Green", "Cyan", "Blue", "Purple",
+ "Red", "Grey", "White", "*Orange"
+};
+
#endif //__NETRIS_H
#endif //__NETRIS_H