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); }
/* 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; }
/* * 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; }