예제 #1
0
 protected static TradeFinder Create(string logFilePath)
 {
     if (map == null)
     {
         map = new Map();
     }
     itemDatabase = new ItemDatabase();
     Market market = new Market(itemDatabase, map);
     return Create(map, market, logFilePath, null);
 }
예제 #2
0
        /*
        private Dictionary<ItemType, StationList> stationsWithItemForSale = new Dictionary<ItemType, StationList>();
        public Dictionary<ItemType, StationList> StationsWithItemForSale
        {
            get { return stationsWithItemForSale; }
        }

        private Dictionary<ItemType, StationList> stationsWithItemWanted = new Dictionary<ItemType, StationList>();
        public Dictionary<ItemType, StationList> StationsWithItemWanted
        {
            get { return stationsWithItemWanted; }
        }

        private Dictionary<Station, ItemList> itemsForSaleAtStation = new Dictionary<Station, ItemList>();
        public Dictionary<Station, ItemList> ItemsForSaleAtStation
        {
            get { return itemsForSaleAtStation; }
        }

        private Dictionary<Station, ItemList> itemsWantedAtStation = new Dictionary<Station, ItemList>();
        public Dictionary<Station, ItemList> ItemsWantedAtStation
        {
            get { return itemsWantedAtStation; }
        }
         * */

        public Market(ItemDatabase itemDatabase, Map map)
        {
            this.itemDatabase = itemDatabase;
            this.map = map;
        }
예제 #3
0
파일: Market.cs 프로젝트: Calthurian/navbot
        /*
         * private Dictionary<ItemType, StationList> stationsWithItemForSale = new Dictionary<ItemType, StationList>();
         * public Dictionary<ItemType, StationList> StationsWithItemForSale
         * {
         *  get { return stationsWithItemForSale; }
         * }
         *
         * private Dictionary<ItemType, StationList> stationsWithItemWanted = new Dictionary<ItemType, StationList>();
         * public Dictionary<ItemType, StationList> StationsWithItemWanted
         * {
         *  get { return stationsWithItemWanted; }
         * }
         *
         * private Dictionary<Station, ItemList> itemsForSaleAtStation = new Dictionary<Station, ItemList>();
         * public Dictionary<Station, ItemList> ItemsForSaleAtStation
         * {
         *  get { return itemsForSaleAtStation; }
         * }
         *
         * private Dictionary<Station, ItemList> itemsWantedAtStation = new Dictionary<Station, ItemList>();
         * public Dictionary<Station, ItemList> ItemsWantedAtStation
         * {
         *  get { return itemsWantedAtStation; }
         * }
         * */

        public Market(ItemDatabase itemDatabase, Map map)
        {
            this.itemDatabase = itemDatabase;
            this.map          = map;
        }