nsnake
Classic snake game for the terminal
Loading...
Searching...
No Matches
src
Interface
Menu
MenuAlphabetic.hpp
1
#ifndef MENUALPHABETIC_H_DEFINED
2
#define MENUALPHABETIC_H_DEFINED
3
4
#include <Interface/Menu/Menu.hpp>
5
11
class
MenuAlphabetic:
public
Menu
12
{
13
public
:
14
MenuAlphabetic(
int
x,
int
y,
int
width,
int
height);
15
16
void
add(
MenuItem
*
item
);
17
void
handleInput
();
18
21
void
goRandom
();
22
};
23
24
#endif
//MENUALPHABETIC_H_DEFINED
25
MenuAlphabetic::goRandom
void goRandom()
Selects a random item right AFTER the first blank one.
Definition
MenuAlphabetic.cpp:85
Menu::handleInput
void handleInput()
Makes the menu react to input, as seen on the global InputManager.
Definition
Menu.cpp:183
Menu::item
std::vector< MenuItem * > item
Container of all the options inside the menu.
Definition
Menu.hpp:109
Menu::Menu
Menu(int x, int y, int width, int height)
Creates a menu at x and y with width and height.
Definition
Menu.cpp:6
MenuItem
Simplest type of item possible, with a label and user-defined id.
Definition
MenuItem.hpp:12
Generated on
for nsnake by
1.14.0