예제 #1
0
    private MoveDirection getOppositeDirection()
    {
        MoveDirection curDir = getCurrentDirection();

        curDir.SetOpposite();
        return(curDir);
    }
예제 #2
0
 private MoveDirection getDir()
 {
     if (getDirection == GetPrevious)
     {
         MoveDirection curDir = getCurrentDirection();
         curDir.SetOpposite();
         return(curDir);
     }
     else
     {
         return(getCurrentDirection());
     }
 }
예제 #3
0
 public MoveDirection GetNextDirection()
 {
     direction.SetOpposite();
     return(direction);
 }