Пример #1
0
 /// <summary>
 /// Allows a wandering dog to wander into a particular yard from somewhere else
 /// </summary>
 /// <param name="yard">The yard into which the dog will wander</param>
 public void WanderInto(Yard yard)
 {
     CheckMovementRules();
     yard.Transfer(this).To(yard);
 }
Пример #2
0
 /// <summary>
 /// Invokes the almighty building code to draw up a new plot of land for building houses and washing dishes.
 /// </summary>
 /// <returns></returns>
 public Yard DrawResidentialPlot()
 {
     Yard yard = new Yard();
     Transfer(yard).To(this);
     return yard;
 }