private void Form1_Load(object sender, EventArgs e) { var elements = new BasicElements(1); var formation = new RowsFormation(12, 5); Show baseProgram = new Show(Combination.Concatenate("Pflichtprogramm", elements.MoveForward("Vorwärts", formation, 24), elements.Wait("Halt im klingenden Spiel", formation, 8), elements.MoveForward("Vorwärts", formation, 16), elements.Schwenkung("Schwenkung", formation, toRight: true), elements.MoveForward("Vorwärts", formation, 8), //TODO add abfallen/aufmarschieren elements.GrosseWendeComplete("Große Wende", formation))); /*Show show = new Show(Combination.Concatenate("Show", * Combination.Parallel("", * trans.MoveForward("v", formation, 8), * trans.BreiteFormation("wide", formation)), * trans.Schwenkung("Schwenkung", formation, toRight: false), * trans.Schwenkung("Schwenkung", formation, toRight: true), * trans.BreiteFormation("wide", formation, sideMarginFactor: 0.5), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 2", formation, toRight: true), * trans.Schwenkung("Schwenkung 3", formation, toRight: true) * ));*/ Show show = new Show(elements.GrosseWendeComplete("Große Wende", formation)); Show rotTest = new Show(Combination.Concatenate("show", new Element { Name = "sfd", StartFormation = formation, GroupActions = new GroupAction[] { GroupActions.MoveForward(4), GroupActions.Rotate(90, delay: 4, duration: 2), GroupActions.MoveForward(4, delay: 6), GroupActions.Rotate(90, delay: 10, duration: 2), GroupActions.MoveForward(4, delay: 12), GroupActions.Rotate(90, delay: 16, duration: 2), GroupActions.MoveForward(4, delay: 18), GroupActions.Rotate(90, delay: 22, duration: 2), } }, new Element { Name = "sfd", StartFormation = formation, GroupActions = new GroupAction[] { GroupActions.MoveForward(4), GroupActions.Rotate(-90, delay: 4, duration: 2), GroupActions.MoveForward(4, delay: 6), GroupActions.Rotate(-90, delay: 10, duration: 2), GroupActions.MoveForward(4, delay: 12), GroupActions.Rotate(-90, delay: 16, duration: 2), GroupActions.MoveForward(4, delay: 18), GroupActions.Rotate(-90, delay: 22, duration: 2), } } )); var x = baseProgram.ToJSON(); var formationTypes = new List <Formation> { new BasicFormation(), new RowsFormation() }; Show s = Data.Show.FromJSON(x, formationTypes); simulator = new ShowSimulator(s); }