public bool ExecuteCommand(string[] args, PlayerCharacter character) { ReadLocation loc = new ReadLocation(); loc.ExecuteCommand(args, character); return(true); }
public bool ExecuteCommand(string[] args, PlayerCharacter character) { character.CurrentLocation = World.LocationByID(World.LOCATION_ID_HOME); ReadLocation readLocation = new ReadLocation(); readLocation.ExecuteCommand(null, character); return(true); }
public bool ExecuteCommand(string[] args, PlayerCharacter character) { if (character.CurrentLocation.LocationToSouth != null) { character.CurrentLocation = character.CurrentLocation.LocationToSouth; ReadLocation readLocation = new ReadLocation(); readLocation.ExecuteCommand(null, character); return(true); } Console.WriteLine("You cannot go that way"); return(false); }