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; }
private void InitMove() { moveFlg = MOVE_DIREC.NONE; MoveAxis = 0; MoveSide = 0; MoveDirection = 0; MoveAngle = 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; }