Example #1
0
        public bool GoNext()
        {
            if (StepNo == StepsCount)
            {
                if (OnAtEnd != null)
                    OnAtEnd(this, new EventArgs());
                return false;
            }
            if (NextStep.Length == 0) return false;

            moveFlg = MOVE_DIREC.NEXT;
            SetMove(NextStep);

            return true;
        }
Example #2
0
        private void InitMove()
        {
            moveFlg = MOVE_DIREC.NONE;

            MoveAxis = 0;
            MoveSide = 0;
            MoveDirection = 0;
            MoveAngle = 0;
        }
Example #3
0
        public bool GoBack()
        {
            if (StepNo == 0)
            {
                if (OnAtBegin != null)
                    OnAtBegin(this, new EventArgs());
                return false;
            }
            if (BackStep.Length == 0) return false;

            moveFlg = MOVE_DIREC.BACK;
            SetMove(BackStep);

            return true;
        }