示例#1
0
文件: Floor.cs 项目: A3vk/Sokoban
 public override bool IsValidEmployeeLocation(Dir dir)
 {
     if (Forklift != null)
     {
         return(Forklift.Move(dir));
     }
     else if (Crate != null)
     {
         return(Crate.Move(dir));
     }
     else
     {
         return(true);
     }
 }
示例#2
0
文件: Maze.cs 项目: A3vk/Sokoban
 public void MoveForklift(Dir dir)
 {
     Forklift.Move(dir);
 }