예제 #1
0
파일: House.cs 프로젝트: pietroiusti/HFCS
 public bool TryMoveToANewLocation(Location from, Location to)
 {
     if (from.Exits.Contains(to) || (from as IHasExteriorDoor).DoorLeadsTo == to)
     {
         CurrentLocation = to;
         return true;
     }
     else
         return false;
 }
예제 #2
0
파일: House.cs 프로젝트: pietroiusti/HFCS
 public bool CanSeeDoorFrom(Location from)
 {
     return from is IHasExteriorDoor;
 }