private void ImUsingTouchControlsInATutorial() { int change = touchHandler.HandleUpdate(clicker); cursor1.setY(touchHandler.rowY); if (touchHandler.aboveEverything) { board1.shiftall = true; } if (!touchHandler.aboveEverything || change == 0) { cursor1.setX(touchHandler.rowX); } if (change != 0 && tutorialAssist.IsActionAllowed((board1.shiftall?1:0), cursor1.getX(), cursor1.getY())) { board1.shifting = change; } else if (touchHandler.launching && tutorialAssist.IsActionAllowed(2, cursor1.getX(), cursor1.getY())) { board1.SetLaunchInfoForLaunch(); } }
public override bool shiftLeft() { return(tc.IsActionAllowed(0, x, y) && base.shiftLeft()); }