Exemple #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);
     }
 }
Exemple #2
0
 public void MoveForklift(Dir dir)
 {
     Forklift.Move(dir);
 }