nsnake
Classic snake game for the terminal
src
Interface
Layout.hpp
1
#ifndef LAYOUT_H_DEFINED
2
#define LAYOUT_H_DEFINED
3
4
#include <Interface/Window.hpp>
5
15
class
Layout
16
{
17
public
:
19
static
int
screenWidth
;
20
22
static
int
screenHeight
;
23
24
Layout
(
int
width,
int
height);
25
virtual
~
Layout
();
26
27
virtual
void
windowsInit();
28
virtual
void
windowsExit();
29
30
virtual
void
draw();
31
33
Window
*
main
;
34
};
35
36
#endif //LAYOUT_H_DEFINED
37
Layout
Interface for how the things are shown on the screen.
Definition:
Layout.hpp:16
Layout::screenWidth
static int screenWidth
Full width of the terminal right now.
Definition:
Layout.hpp:19
Window
A segment of the terminal screen (2D char matrix).
Definition:
Window.hpp:17
Layout::screenHeight
static int screenHeight
Full height of the terminal right now.
Definition:
Layout.hpp:22
Layout::main
Window * main
Layout's main Window, where all the others are inside.
Definition:
Layout.hpp:33
Generated on Tue Jul 28 2020 00:00:00 for nsnake by
1.8.18