nsnake
Classic snake game for the terminal
Loading...
Searching...
No Matches
LayoutGame Class Reference
Inheritance diagram for LayoutGame:
Collaboration diagram for LayoutGame:

Public Member Functions

 LayoutGame (Game *game, int width, int height)
 
void windowsInit ()
 
void windowsExit ()
 
void draw (Menu *menu)
 
virtual void draw ()
 
- Public Member Functions inherited from Layout
 Layout (int width, int height)
 

Public Attributes

Windowpause
 Contains the pause menu.
 
Windowhelp
 Contains the help screen.
 
- Public Attributes inherited from Layout
Windowmain
 Layout's main Window, where all the others are inside.
 

Additional Inherited Members

- Static Public Attributes inherited from Layout
static int screenWidth = 0
 Full width of the terminal right now.
 
static int screenHeight = 0
 Full height of the terminal right now.
 

Detailed Description

Definition at line 11 of file LayoutGame.hpp.

Constructor & Destructor Documentation

◆ LayoutGame()

LayoutGame::LayoutGame ( Game * game,
int width,
int height )

Definition at line 5 of file LayoutGame.cpp.

◆ ~LayoutGame()

LayoutGame::~LayoutGame ( )
virtual

Definition at line 17 of file LayoutGame.cpp.

Member Function Documentation

◆ draw() [1/2]

void Layout::draw ( )
virtual

Reimplemented from Layout.

Definition at line 30 of file Layout.cpp.

◆ draw() [2/2]

void LayoutGame::draw ( Menu * menu)

Definition at line 90 of file LayoutGame.cpp.

◆ windowsExit()

void LayoutGame::windowsExit ( )
virtual

Reimplemented from Layout.

Definition at line 76 of file LayoutGame.cpp.

◆ windowsInit()

void LayoutGame::windowsInit ( )
virtual

Reimplemented from Layout.

Definition at line 21 of file LayoutGame.cpp.

Member Data Documentation

◆ help

Window* LayoutGame::help

Contains the help screen.

Definition at line 45 of file LayoutGame.hpp.

◆ pause

Window* LayoutGame::pause

Contains the pause menu.

Definition at line 42 of file LayoutGame.hpp.


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