nsnake
Classic snake game for the terminal
|
Interface for how the things are shown on the screen. More...
#include <Layout.hpp>
Public Member Functions | |
Layout (int width, int height) | |
virtual void | windowsInit () |
virtual void | windowsExit () |
virtual void | draw () |
Public Attributes | |
Window * | main |
Layout's main Window, where all the others are inside. | |
Static Public Attributes | |
static int | screenWidth = 0 |
Full width of the terminal right now. | |
static int | screenHeight = 0 |
Full height of the terminal right now. | |
Interface for how the things are shown on the screen.
Any Layout will have lots if Windows, each with a specific function: to show the game board, display high scores, show next pieces, and such.
I suggest you subclass this and implement your layout elsewhere.
Definition at line 15 of file Layout.hpp.