예제 #1
0
파일: Game.cs 프로젝트: seuribe/demondrian
 public void RotateTo(Orientation dest)
 {
     foreach (var act in RotateAction.GenerateActions(Orientation, dest))
     {
         Rotate(act.dir);
     }
 }
예제 #2
0
 public void RotateTo(Orientation dest)
 {
     foreach (var act in RotateAction.GenerateActions(Orientation, dest))
     {
         if (act == RotateAction.Left)
         {
             RotateLeft();
         }
         else
         {
             RotateRight();
         }
     }
 }