//user step public void skip() { Console.WriteLine("skip"); for (Iterator iterator = map.iteratorBuild(); iterator.hasNext();) { Build obj = (Build)iterator.next(); ResourceList resource = obj.skip(); resourceList.add(resource); } }
public void add(ResourceList resource) { Dictionary <ResourceType, Resource> otherResourceMap = resource.resourceMap; otherResourceMap.Keys.Where(res => res != null).ToList().ForEach(res => add(otherResourceMap[res])); }
public Game(Map map) { this.map = map; this.resourceList = new ResourceList(); this.prices = new Prices(); }