public AuctionMap(AuctionSafe auctionsafe) : base(auctionsafe.Map) { AuctionSafe = auctionsafe; AuctionItem = auctionsafe.Auction.AuctionItem; SafeLocation = auctionsafe.Location; SafeMap = auctionsafe.Map; BaseHouse house = GetHouse(); if (house != null) { HouseName = house.Sign.GetName(); } else { HouseName = "Unknown"; } Hue = RecallRune.CalculateHue(auctionsafe.Map, null, true); LootType = LootType.Blessed; Width = 400; Height = 400; Bounds = new Rectangle2D(auctionsafe.X - 100, auctionsafe.Y - 100, 200, 200); AddWorldPin(auctionsafe.X, auctionsafe.Y); }
public SearchItem(AuctionSafe auctionsafe, Item item, int price, bool isChild) { AuctionSafe = auctionsafe; Item = item; Price = price; IsChild = isChild; IsAuction = true; }
public bool IsSale() { return(SearchItem != null && (AuctionSafe != null && AuctionSafe.CheckAuctionItem(SearchItem) || Vendor != null && Vendor.GetVendorItem(SearchItem) != null)); }
public bool CheckItem() { return(GetHouse() != null && AuctionItem != null && AuctionSafe.CheckAuctionItem(AuctionItem)); }