예제 #1
0
 public static bool IsTraversible(this CellType cell)
 {
     return(cell.IsLambda() || cell.IsEmpty() || cell.IsEarth() || cell == CellType.OpenLift || cell.IsRobot() ||
            cell.IsRock() || cell.IsTrampoline() || cell.IsRazor() || cell.IsTarget());
 }
예제 #2
0
 public static bool IsClearable(this CellType cell)
 {
     return(cell.IsLambda() || cell.IsEmpty() || cell.IsEarth() || cell.IsTrampoline() || cell.IsRobot() ||
            cell.IsRazor());
 }
예제 #3
0
 public static bool HoldsRock(this CellType cell)
 {
     return(cell.IsRock() || cell.IsTrampoline() || cell.IsTarget() || cell.IsLambda() || cell.IsRobot() ||
            cell.IsEarth() || cell.IsBeard() || cell.IsRazor());
 }