38 lines
515 B
C++
38 lines
515 B
C++
#ifndef __MENUMANAGER_H
|
|
#define __MENUMANAGER_H
|
|
|
|
#include <vector>
|
|
|
|
#include "../glfontengine.h"
|
|
#include "menumenu.h"
|
|
|
|
namespace segl {
|
|
|
|
class MenuManager {
|
|
private:
|
|
MenuMenu *aktuell;
|
|
|
|
std::vector<MenuMenu*> menus;
|
|
public:
|
|
MenuManager();
|
|
|
|
void addMenu(MenuMenu*);
|
|
bool changeMenu(MenuMenu*);
|
|
const MenuMenu* getMenu();
|
|
void render();
|
|
|
|
void up();
|
|
void down();
|
|
void left();
|
|
void right();
|
|
void select();
|
|
void charInput(char c);
|
|
|
|
|
|
void reset();
|
|
};
|
|
|
|
} // namespace segl
|
|
|
|
#endif
|