2008-03-08 23:03:26 +01:00
|
|
|
#ifndef __MENUMANAGER_H
|
|
|
|
#define __MENUMANAGER_H
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "../glfontengine.h"
|
|
|
|
#include "menumenu.h"
|
|
|
|
|
|
|
|
|
|
|
|
class MenuManager {
|
|
|
|
private:
|
|
|
|
MenuMenu *aktuell;
|
|
|
|
|
|
|
|
std::vector<MenuMenu*> menus;
|
|
|
|
public:
|
|
|
|
MenuManager();
|
|
|
|
|
|
|
|
void addMenu(MenuMenu*);
|
|
|
|
bool changeMenu(MenuMenu*);
|
2008-03-23 18:00:55 +01:00
|
|
|
const MenuMenu* getMenu();
|
2008-03-08 23:03:26 +01:00
|
|
|
void render();
|
|
|
|
|
|
|
|
void up();
|
|
|
|
void down();
|
|
|
|
void left();
|
|
|
|
void right();
|
|
|
|
void select();
|
2008-03-23 18:00:55 +01:00
|
|
|
void charInput(char c);
|
|
|
|
|
|
|
|
|
|
|
|
void reset();
|
2008-03-08 23:03:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|