move game type to Game struct
[netris.git] / netris.h
index af6841424fc00dcd1a9e9cbc6b5a2eeab98c7e4c..e04336eb138d8f3235056f6070eab3a89b7d24d1 100644 (file)
--- a/netris.h
+++ b/netris.h
@@ -78,7 +78,6 @@ typedef long netint4;
 #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,
@@ -180,7 +179,9 @@ EXT int spied; //in player.flags
 #define SPEEDINC          1.2
 #define SPEEDMINIMUM      40000
 
+typedef enum _GameType { GT_onePlayer, GT_classicTwo, GT_len } GameType;
 typedef struct {
+       GameType type;
        int gravity;     //1
        int started;     //2
        int continuous;  //3
@@ -192,8 +193,6 @@ EXT _Game Game;
 
 #define MSG_WIDTH 128
 
-EXT GameType game; // => Game.type
-
 EXT short port; // => just in client.c, parameter to inet connect
 
 #endif //__NETRIS_H