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