#include <vector>
#include <string>
using namespace std;

class menu
{
	public:
	menu(string name="");
	void setPosition(position p);
	void setPosition(int row, int col);
	void addChoice(string choice);					// adds a new choice to the menu
	int getUserChoice(unsigned int exitChoice=99);	// display menu and return the user's selection

	private:
	void undisplay();
	vector<string> choices;	
	position basePos;
	bool fixedPosition;	// true if position was manually set by calling setPosition
	unsigned int longestChoiceLength;
	string menuName;	
};

