|
nsnake
Classic snake game for the terminal
|
How we show the screen at GameStateMainMenu. More...
#include <LayoutMainMenu.hpp>


Public Member Functions | |
| LayoutMainMenu (int width, int height, GameStateMainMenu *state) | |
| void | windowsInit () |
| void | windowsExit () |
| void | draw (Menu *menu) |
| Shows the Main Menu screen, along with drawing menu. | |
| void | redraw () |
| Redraws everything from scratch, refreshing borders and stuff. | |
Public Attributes | |
| GameStateMainMenu * | state |
| We need this so we can access the states' flags and decide best on how to print it. | |
| Window * | logo |
| Window * | menu |
| Window * | animationwin |
| Animation * | animation |
| Cure thing at the main menu. | |
How we show the screen at GameStateMainMenu.
This class is merely a wrapper over functions that print GameStateMainMenu on the screen.
Thus, it needs full access to it's internal values. So it comes down to this circular dependency.
Definition at line 20 of file LayoutMainMenu.hpp.
| LayoutMainMenu::LayoutMainMenu | ( | int | width, |
| int | height, | ||
| GameStateMainMenu * | state | ||
| ) |
Definition at line 14 of file LayoutMainMenu.cpp.
|
virtual |
Definition at line 24 of file LayoutMainMenu.cpp.
| void LayoutMainMenu::draw | ( | Menu * | menu | ) |
Shows the Main Menu screen, along with drawing menu.
Definition at line 85 of file LayoutMainMenu.cpp.
| void LayoutMainMenu::windowsExit | ( | ) |
Definition at line 76 of file LayoutMainMenu.cpp.
| void LayoutMainMenu::windowsInit | ( | ) |
Definition at line 28 of file LayoutMainMenu.cpp.
| Animation* LayoutMainMenu::animation |
Cure thing at the main menu.
Definition at line 49 of file LayoutMainMenu.hpp.
| Window* LayoutMainMenu::animationwin |
Definition at line 46 of file LayoutMainMenu.hpp.
| Window* LayoutMainMenu::logo |
Definition at line 44 of file LayoutMainMenu.hpp.
| Window* LayoutMainMenu::menu |
Definition at line 45 of file LayoutMainMenu.hpp.
| GameStateMainMenu* LayoutMainMenu::state |
We need this so we can access the states' flags and decide best on how to print it.
Definition at line 42 of file LayoutMainMenu.hpp.