Esempio n. 1
0
    public void move_Anticlockwise(Ring_Direction ring_Dir, int ring_Number)
    {
        if (ring_Dir > 0)
        {
            ring_Dir--;
        }

        else
        {
            ring_Dir = Ring_Direction.SOUTH;
        }

        switch (ring_Number)
        {
        case 1:
            First_Ring_Direction = ring_Dir;
            break;

        case 2:
            Second_Ring_Direction = ring_Dir;
            break;

        case 3:
            Third_Ring_Direction = ring_Dir;
            break;

        case 4:
            Fourth_Ring_Direction = ring_Dir;
            break;
        }
    }
Esempio n. 2
0
    public void move_Clockwise(Ring_Direction ring_Dir, int ring_Number)
    {
        if ((int)ring_Dir < 3)
        {
            ring_Dir++;
        }

        else
        {
            ring_Dir = Ring_Direction.WEST;
        }

        switch (ring_Number)
        {
        case 1:
            First_Ring_Direction = ring_Dir;
            break;

        case 2:
            Second_Ring_Direction = ring_Dir;
            break;

        case 3:
            Third_Ring_Direction = ring_Dir;
            break;

        case 4:
            Fourth_Ring_Direction = ring_Dir;
            break;
        }
    }
    public void move_Anticlockwise(Ring_Direction ring_Dir)
    {
        if (ring_Dir > 0)
        {
            ring_Dir--;
        }

        else
        {
            ring_Dir = Ring_Direction.SOUTH;
        }

        First_Ring_Direction = ring_Dir;
    }
    public void move_Clockwise(Ring_Direction ring_Dir)
    {
        if ((int)ring_Dir < 3)
        {
            ring_Dir++;
        }

        else
        {
            ring_Dir = Ring_Direction.WEST;
        }

        First_Ring_Direction = ring_Dir;
    }