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

            ReturnedContents(safeContents, owner);
        }
 override public void ReturnedContents(Jewels safeContents, Owen owen)
 {
     stolenJewels = safeContents;
     Console.WriteLine("I'm stealing the contents! " + stolenJewels.Sparkle());
 }
示例#3
0
 public void ReceiveContents(Jewels safeContents)
 {
     returnedContents = safeContents;
     Console.WriteLine("Thank your for returning my jewels " + safeContents.Sparkle());
 }
示例#4
0
 virtual public void ReturnedContents(Jewels safeContents, Owen owen)
 {
     owen.ReceiveContents(safeContents);
 }