Hello,
I am having some trouble with this function:
How can I make the connection both ways? For example I connect room1 with room2 (north) as shown above, but how can I make it that it automatically joins room2 with room1 (south)
Thanks in advance!
I am having some trouble with this function:
Code:
void room::addConnection(string direction, room *x)
{
if (direction == "north")
{
north = x;
}
}
Thanks in advance!
Comment