21 return (this->
x == p.
x && this->y == p.
y);
32 s <<
'(' << p.
x <<
',' << p.
y <<
')';
59 req.tv_sec = time / 1000;
60 req.tv_nsec = (time % 1000) * 1000000;
61 nanosleep(&req, &rem);
93 nanosleep(&req, &rem);
103 getmaxyx(stdscr, size.
y, size.
x);
void mSleep(int time)
Cross-platform sleep function cover.
std::ostream & operator<<(std::ostream &s, Point p)
Operation '<<' override for the Point class.
bool operator==(Point p)
Operation "==" override for the Point class.
void sleepHandler()
setting new values for sleep function on signal interrupt
void set_escdelay(short delay)
Point getConsoleSize()
Gets size of current console screen in symdols.
shared functions prototypes, structures, main classes declarations
void addSleep()
For unix-based systems interrupted sleep must be continued.
Coordinates and style of the cell in console window.