Esempio 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;
 }
Esempio n. 2
0
 public bool CanSeeDoorFrom(Location from)
 {
     return from is IHasExteriorDoor;
 }