when i run the program it does not display the directions (north, south,east west). but maybe it is because i suppose i need to change something in a different function also,
void look_around(int loc, room *rms, words *dir, noun *nns)
{
int i;
cout << "I am in a " << rms[loc].description << "." << endl;
for (i = 0; i < DIRS; i++)
{
if (rms[loc].exits_to_room[i] != NONE)
{
cout << "There is an exit " << dir[i].word << " to a "
<< rms[rms[loc].exits_to_room[i]].description << "." << endl;
}
}
// The look command should check which objects (nouns) are in the
// current room and report them to the player.
for (i = 0; i < NOUNS; i++)
{
if (nns[i].location == loc)
{
cout << "I see " << nns[i].description << "." << endl;
}
}
}
the purpose of the game is for it to tell you in which room are you and when user imputs look it shows the exits and displays either north south east or west , then player imputs one of those directions and it sould take you to another rrom and ask again what user wants to do