Oi! I'm trying to build a menu for a text based rpg. So that whenever your done "doing something" it always comes back to it. I was wondering if there is a way that i could keep "vital" stats in a sort of header at the top of the console.
I was referring to keeping stats in a fixed position in the console, by the way.
For the central menu it would make sense to have a function displayMenu that displays the menu, a function that reads an user choice and a function for each entry in the menu. The main loop could then look like this:
1 2 3 4 5 6 7 8 9
for (;;)
{
displayMenu();
int choice=readUserChoice();
switch (choice)
{
...
}
}