nsnake
Classic snake game for the terminal
Public Member Functions | Public Attributes | List of all members
LayoutMainMenu Class Reference

How we show the screen at GameStateMainMenu. More...

#include <LayoutMainMenu.hpp>

Inheritance diagram for LayoutMainMenu:
Inheritance graph
[legend]
Collaboration diagram for LayoutMainMenu:
Collaboration graph
[legend]

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. More...
 

Public Attributes

GameStateMainMenustate
 We need this so we can access the states' flags and decide best on how to print it. More...
 
Window * logo
 
Window * menu
 
Window * animationwin
 
Animation * animation
 Cure thing at the main menu.
 

Detailed Description

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.

Member Function Documentation

◆ redraw()

void LayoutMainMenu::redraw ( )

Redraws everything from scratch, refreshing borders and stuff.

Member Data Documentation

◆ state

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.


The documentation for this class was generated from the following files: