cleanup overlay message centering
[netris.git] / netris.h
index 6ed388cf58400d37936ff5c3343ea90aa5fd09d4..99c8dcbd06c192fc2ed8c5ddf6e64296ed462f02 100644 (file)
--- a/netris.h
+++ b/netris.h
@@ -128,10 +128,6 @@ typedef struct _MyEvent {
        union {
                char key;
                _netEvent net;
-               struct {
-                       int size;
-                       char *data;
-               } robot;
        } u;
 } MyEvent;
 
@@ -150,8 +146,6 @@ typedef struct _EventGenRec {
        int bufSize, bufGoal;
 } EventGenRec;
 
-MyEventType NetGenFunc(EventGenRec *gen, MyEvent *event);
-
 /* NP_startConn flags */
 #define SCF_paused  1
 
@@ -163,14 +157,14 @@ typedef struct {
        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
@@ -188,8 +182,8 @@ typedef struct {
        long seed;       //4
        int initspeed;   //5
        int speed;
-} _Game;
-EXT _Game Game;
+} game_t;
+EXT game_t Game;
 
 #define MSG_WIDTH 128