/// <summary> /// Visits the information booth. /// </summary> /// <param name="informationBooth"> The booth being visited.</param> public void VisitInformationBooth(GivingBooth informationBooth) { // Gets the map. Map map = informationBooth.GiveFreeMap(); // Gets the coupon book. CouponBook couponBook = informationBooth.GiveFreeCouponBook(); bag.Add(map); bag.Add(couponBook); }
/// <summary> /// Visits the information booth to obtain a coupon book and a map. /// </summary> /// <param name="informationBooth">The booth to visit.</param> public void VisitInformationBooth(GivingBooth informationBooth) { // Get map. Map map = informationBooth.GiveFreeMap(); // Get coupon book. CouponBook couponBook = informationBooth.GiveFreeCouponBook(); // Add items to bag. this.bag.Add(map); this.bag.Add(couponBook); }
/// <summary> /// The guest visits the information booth. /// </summary> /// <param name="informationBooth">The information booth to visit.</param> public void VisitInformationBooth(GivingBooth informationBooth) { // Get a free map and add it to the bag.. Map map = informationBooth.GiveFreeMap(); this.bag.Add(map); // Get a free coupon book and add it to the bag. CouponBook couponBook = informationBooth.GiveFreeCouponBook(); this.bag.Add(couponBook); }
/// <summary> /// Visits a booth to acquire information. /// </summary> /// <param name="informationBooth">The booth to visit.</param> public void VisitInformationBooth(GivingBooth informationBooth) { Map map = informationBooth.GiveFreeMap(); CouponBook couponBook = informationBooth.GiveFreeCouponBook(); }