Beispiel #1
0
 public override bool IsValidEmployeeLocation(Dir dir)
 {
     if (Forklift != null)
     {
         return(Forklift.Move(dir));
     }
     else if (Crate != null)
     {
         return(Crate.Move(dir));
     }
     else
     {
         return(true);
     }
 }
Beispiel #2
0
 public void MoveForklift(Dir dir)
 {
     Forklift.Move(dir);
 }