nsnake
Classic snake game for the terminal
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 
34 };
35 
36 #endif //LAYOUT_H_DEFINED
37 
A segment of the terminal screen (2D char matrix).
Definition: Window.hpp:16
Window * main
Layout&#39;s main Window, where all the others are inside.
Definition: Layout.hpp:33
static int screenWidth
Full width of the terminal right now.
Definition: Layout.hpp:19
Interface for how the things are shown on the screen.
Definition: Layout.hpp:15
static int screenHeight
Full height of the terminal right now.
Definition: Layout.hpp:22