nsnake
Classic snake game for the terminal
|
Public Member Functions | |
LayoutGame (Game *game, int width, int height) | |
void | windowsInit () |
void | windowsExit () |
void | draw (Menu *menu) |
virtual void | draw () |
![]() | |
Layout (int width, int height) | |
Public Attributes | |
Window * | pause |
Contains the pause menu. | |
Window * | help |
Contains the help screen. | |
![]() | |
Window * | main |
Layout's main Window, where all the others are inside. | |
Additional Inherited Members | |
![]() | |
static int | screenWidth = 0 |
Full width of the terminal right now. | |
static int | screenHeight = 0 |
Full height of the terminal right now. | |
Definition at line 11 of file LayoutGame.hpp.
LayoutGame::LayoutGame | ( | Game * | game, |
int | width, | ||
int | height ) |
Definition at line 5 of file LayoutGame.cpp.
|
virtual |
Definition at line 17 of file LayoutGame.cpp.
|
virtual |
Reimplemented from Layout.
Definition at line 30 of file Layout.cpp.
void LayoutGame::draw | ( | Menu * | menu | ) |
Definition at line 90 of file LayoutGame.cpp.
|
virtual |
Reimplemented from Layout.
Definition at line 76 of file LayoutGame.cpp.
|
virtual |
Reimplemented from Layout.
Definition at line 21 of file LayoutGame.cpp.
Window* LayoutGame::help |
Contains the help screen.
Definition at line 45 of file LayoutGame.hpp.
Window* LayoutGame::pause |
Contains the pause menu.
Definition at line 42 of file LayoutGame.hpp.