protected override void CreateScreens() { SymbolImport si = new SymbolImport("titleScreen", "entryScreen"); titleScreen = new StartScreen(si); stage.AddScreen(titleScreen); levelNumber = 12; //AddLevel("allCarsScreen", typeof(AllCarsScreen)); //AddLevel("wideBoulevardScreen", typeof(WideBoulevardScreen)); //AddLevel("spaceMediumScreen", typeof(SpaceMediumScreen)); //AddLevel("steamRollerScreen", typeof(SteamRollerScreen)); levelNumber = 0; AddLevel("twoLaneScreen", typeof(TwoLaneScreen)); // must be first AddLevel("wideBoulevardScreen", typeof(WideBoulevardScreen)); AddLevel("crosswalkScreen", typeof(CrosswalkScreen)); AddLevel("twoTrainTwoRestScreen", typeof(TwoTrainTwoRestScreen)); AddLevel("twoCanaltwoBoulScreen", typeof(TwoCanalTwoBoulevardScreen)); AddLevel("spaceMediumScreen", typeof(SpaceMediumScreen)); AddLevel("allCarsScreen", typeof(AllCarsScreen)); AddLevel("twoCanalScreen", typeof(TwoCanalScreen)); AddLevel("housesScreen", typeof(HousesScreen)); AddLevel("allWaterScreen", typeof(AllWaterScreen)); AddLevel("twoTrainScreen", typeof(TwoTrainScreen)); AddLevel("allTrainScreen", typeof(AllTrainScreen)); AddLevel("laneChangeScreen", typeof(LaneChangeScreen)); // must be 12th AddLevel("twoCanalTwoTrainScreen", typeof(TwoCanalTwoTrainScreen)); AddLevel("twoBoulevardScreen", typeof(TwoBoulevardScreen)); AddLevel("steamRollerScreen", typeof(SteamRollerScreen)); }
public Screen(SymbolImport symbolImport) { this.SymbolImport = symbolImport; EnsureV2DWorld(); if (SymbolImport == null || SymbolImport.instanceName == CurrentRootName) { instanceDefinition = v2dWorld.RootInstance; instanceName = ROOT_NAME; } else { instanceDefinition = FindRootInstance(v2dWorld.RootInstance, SymbolImport.instanceName); instanceName = symbolImport.instanceName; } if (instanceDefinition != null) { definitionName = instanceDefinition.DefinitionName; } SetAttributes(); }
public SplashScreen(SymbolImport si) : base(si) { }
public Tutorial4Screen(SymbolImport si) : base(si) { SymbolImport = si; }
public BaseScreen(SymbolImport si) : base(si) { }
public Level11Screen(SymbolImport si, int songIndex) : base(si) { this.songIndex = songIndex; }
public PulleyJointDemo(SymbolImport si) : base(si) { }
public TwoCanalTwoBoulevardScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public WideBoulevardScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public LaneChangeScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public TwoTrainTwoRestScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public V2DScreen(SymbolImport symbolImport) : base(symbolImport) { CreateWorld(); }
public AllWaterScreen(SymbolImport si) : base(si) { SymbolImport = si; }
private void AddLevel(string levelName, Type levelType) { SymbolImport si = new SymbolImport("screens", levelName); ConstructorInfo ci = levelType.GetConstructor(new Type[]{si.GetType()}); object o = ci.Invoke(new object[] { si }); ((BaseScreen)o).levelNumber = levelNumber++; stage.AddScreen((BaseScreen)o); }
public AllCarsScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public SteamRollerScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public HousesScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public TwoCanalTwoTrainScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public Scene2Data(SymbolImport si) : base(si) { }
public AllTrainScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public TitleScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public AnimationDemo(SymbolImport si) : base(si) { }
public TwoLaneScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public Level8Screen(SymbolImport si) : base(si) { }
public Level0Screen(SymbolImport si) : base(si) { SymbolImport = si; }
public SpaceMediumScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public SpinnerDemo(SymbolImport si) : base(si) { }
public RevoluteJointDemo(SymbolImport si) : base(si) { }
public StartScreen(SymbolImport si) : base(si) { SymbolImport = si; }
public HudScreen(SymbolImport si) : base(si) { }