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

Interface for how the things are shown on the screen. More...

#include <Layout.hpp>

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

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.
 

Detailed Description

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.


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