Example #1
0
        public void OpenSafe(Safe safe, Owner owner)
        {
            safe.PickLock(this);
            Jewels safeContents = safe.Open(writtenDownCombination);

            ReturnContents(safeContents, owner);
        }
        public override void ReturnContents(Jewels safeContents, Owner owner)
        {
            stolenJewels = safeContents;

            Console.WriteLine("Kradne zawartość sejfu ! " + stolenJewels.Sparkle());
        }
Example #3
0
        public void ReceiveContents(Jewels safeContents)
        {
            returnedContents = safeContents;

            Console.WriteLine("Dziękuję za zwrócenie klejnotów! " + safeContents.Sparkle());
        }
Example #4
0
 public virtual void ReturnContents(Jewels safeContents, Owner owner)
 {
     owner.ReceiveContents(safeContents);
 }