コード例 #1
0
 //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]));
        }
コード例 #3
0
 public Game(Map map)
 {
     this.map          = map;
     this.resourceList = new ResourceList();
     this.prices       = new Prices();
 }