示例#1
0
 public Coordinates useDoor(Coordinates playerPosition, Coordinates doorPosition)
 {
     if (!grid.isDoor(doorPosition))
     {
         return(playerPosition);
     }
     return(grid.getOtherDoorSide(playerPosition, doorPosition));
 }