//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]));
        }
Ejemplo n.º 3
0
 public Game(Map map, ResourceList resourceList)
 {
     this.map          = map;
     this.resourceList = resourceList;
     this.prices       = new Prices();
 }