public static void InitilizeLocations() { locations = new LocationCollection(); Location location1 = new Location("Barn"); locations.AddLocation(location1); Location location2 = new Location("Field"); locations.AddLocation(location2); Location location3 = new Location("Pasture"); locations.AddLocation(location3); }
public Farm(UnicornCollection unicorns, LocationCollection locations, Dictionary <Unicorn, Location> placesWhereTheUnicornsAre) { this.unicorns = unicorns; this.locations = locations; this.placesWhereTheUnicornsAre = placesWhereTheUnicornsAre; }