Projet_VictorAvecUnK/app/include/Menu.h
2020-05-30 15:18:21 +02:00

35 lines
867 B
C++

//
// Created by camer on 22/05/2020.
//
#ifndef PROJET_VICTORAVECUNK_MENU_H
#define PROJET_VICTORAVECUNK_MENU_H
#include <string>
#include <list>
#include "Tortue.h"
class Menu {
protected:
int id; //Défini l'écran actuel
int nbreChoices; //Nbre d'élémennts du menu actuel
int choice; //L'élement choisi du menu actuel
std::list<std::pair<int,std::string>> list; //liste de toutes les pairs d'Id et éléments
std::list<std::pair<int,int>> listId; //Chemin d'Id parcouru
public:
Menu(); //Constructeur
//Getters
int getId() const;
int getChoice() const;
//Methods
std::string getMessage();
void nextChoice();
void previousChoice();
void menuBack();
void menuNext();
std::string displayDefault(float temp, float press, int rad, int tap, int nbTortue);
};
#endif //PROJET_VICTORAVECUNK_MENU_H