local player settings together in a struct
[netris.git] / curses.h
index 84ff19b8f9f3d11530b7b83a84f9fee15620af67..13abc67056ca638851558f1806b16aa47a03d563 100644 (file)
--- a/curses.h
+++ b/curses.h
@@ -1,7 +1,14 @@
 #ifndef __CURSES_H
 #define __CURSES_H
 
-extern int PlayerDisp[MAX_SCREENS];
+typedef struct {
+       // local player settings
+       int shown; // visible
+       int posx; // starting column
+       int posy; // position of first (bottom) row
+       int size; // characters per block
+} window_t;
+extern window_t window[MAX_SCREENS];
 
 extern void InitScreens(void);
 extern void CleanupScreens(void);