Exemplo n.º 1
0
 public bool TryMoveToANewLocation(Location from, Location to)
 {
     if (from.Exits.Contains(to) || (from as IHasExteriorDoor).DoorLeadsTo == to)
     {
         CurrentLocation = to;
         return true;
     }
     else
         return false;
 }
Exemplo n.º 2
0
 public bool CanSeeDoorFrom(Location from)
 {
     return from is IHasExteriorDoor;
 }