29 lines
575 B
C
29 lines
575 B
C
#ifndef NCURSES_H
|
|
#define NCURSES_H
|
|
|
|
#if _WIN32 | _WIN64
|
|
#include <Winsock2.h>
|
|
#else
|
|
#include <sys/select.h> // fd_set, etc.
|
|
#endif
|
|
|
|
WINDOW * screen;
|
|
int cols;
|
|
int rows;
|
|
|
|
int original_cursor;
|
|
|
|
int interface_fd; // STDIN, generally
|
|
int network_fd; // socket
|
|
|
|
// TODO: gameLoop timer does not work on win32. Code is there, but needs a fake window for handling message events
|
|
// called on SIGALRM, calls gameLoop();
|
|
void tickSignal();
|
|
#if _WIN32 | _WIN64
|
|
HWND win_timer;
|
|
#else
|
|
// our so-called timer for ticking the world. aka a sigalrm
|
|
struct itimerval interval;
|
|
#endif
|
|
#endif
|