Greetings,
If this is the wrong forum for this topic, then please move it.
I was wondering if anyone could give me some guidance when it comes to having multiple cites in a text adventure game. I found this example from Google searching, and it's sort of what I have in mind. My problem is moving between cities and then in code, checking if the user as reached the next city.
I guess it depends on how I'm going to design my cites. What I had in mind was that City would be a class, like this:
public class City
{
private List<GameObject> buildings;
private List<Character> people;
private string cityName = String.Empty;
public City()
{
cityName = "My New City"
buildings = new List<GameObject>();
//code to load buildings list
people = new List<Character>();
//code to load Character list
}
public void start() {}
public void checkAction() {}
public bool ismissionCompleted () {}
}
Am I sort of on the right track when thinking about my cites and how to move around? Is there a better way for looking at it?