public ChasingSprite3(Texture2D textureImage, Vector2 position, Point frameSize, int collisionOffset, Point currentFrame, Point sheetSize, Vector2 speed, int millisecondsPerFrame, TrackManager3 trackManager3) : base(textureImage, position, frameSize, collisionOffset, currentFrame, sheetSize, speed, millisecondsPerFrame) { this.trackManager3 = trackManager3; }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { // TODO: Add your initialization logic here spriteManager = new SpriteManager(this); Components.Add(spriteManager); spriteManager1 = new SpriteManager1(this); Components.Add(spriteManager1); spriteManager2 = new SpriteManager2(this); Components.Add(spriteManager2); spriteManager3 = new SpriteManager3(this); Components.Add(spriteManager3); spriteManager4 = new SpriteManager4(this); Components.Add(spriteManager4); spriteManager5 = new SpriteManager5(this); Components.Add(spriteManager5); spriteManager6 = new SpriteManager6(this); Components.Add(spriteManager6); spriteManager7 = new SpriteManager7(this); Components.Add(spriteManager7); spriteManager8 = new SpriteManager8(this); Components.Add(spriteManager8); spriteManager9 = new SpriteManager9(this); Components.Add(spriteManager9); spriteManager10 = new SpriteManager10(this); Components.Add(spriteManager10); titleMenu = new TitleMenu(this); Components.Add(titleMenu); selectMenu = new SelectMenu(this); Components.Add(selectMenu); creditsMenu = new CreditsMenu(this); Components.Add(creditsMenu); trackManager = new TrackManager(this); Components.Add(trackManager); trackManager1 = new TrackManager1(this); Components.Add(trackManager1); trackManager2 = new TrackManager2(this); Components.Add(trackManager2); trackManager3 = new TrackManager3(this); Components.Add(trackManager3); trackManager4 = new TrackManager4(this); Components.Add(trackManager4); trackManager5 = new TrackManager5(this); Components.Add(trackManager5); trackManager6 = new TrackManager6(this); Components.Add(trackManager6); trackManager7 = new TrackManager7(this); Components.Add(trackManager7); trackManager8 = new TrackManager8(this); Components.Add(trackManager8); trackManager9 = new TrackManager9(this); Components.Add(trackManager9); trackManager10 = new TrackManager10(this); Components.Add(trackManager10); looseMenu = new LooseMenu(this); Components.Add(looseMenu); enter = new Select(this); Components.Add(enter); selectType = new SelectType(this); Components.Add(selectType); selectGoal = new SelectGoal(this); Components.Add(selectGoal); helpMenu = new HelpMenu(this); Components.Add(helpMenu); selectMenu.Enabled = false; selectMenu.Visible = false; titleMenu.Enabled = false; titleMenu.Visible = false; //------------------------------ spriteManager.Enabled = false; spriteManager.Visible = false; spriteManager1.Enabled = false; spriteManager1.Visible = false; spriteManager2.Enabled = false; spriteManager2.Visible = false; spriteManager3.Enabled = false; spriteManager3.Visible = false; spriteManager4.Enabled = false; spriteManager4.Visible = false; spriteManager5.Enabled = false; spriteManager5.Visible = false; spriteManager6.Enabled = false; spriteManager6.Visible = false; spriteManager7.Enabled = false; spriteManager7.Visible = false; spriteManager8.Enabled = false; spriteManager8.Visible = false; spriteManager9.Enabled = false; spriteManager9.Visible = false; spriteManager10.Enabled = false; spriteManager10.Visible = false; //---------------------- creditsMenu.Enabled = false; creditsMenu.Visible = false; //-------------------------------- trackManager.Enabled = false; trackManager.Visible = false; trackManager1.Enabled = false; trackManager1.Visible = false; trackManager2.Enabled = false; trackManager2.Visible = false; trackManager3.Enabled = false; trackManager3.Visible = false; trackManager4.Enabled = false; trackManager4.Visible = false; trackManager5.Enabled = false; trackManager5.Visible = false; trackManager6.Enabled = false; trackManager6.Visible = false; trackManager7.Enabled = false; trackManager7.Visible = false; trackManager8.Enabled = false; trackManager8.Visible = false; trackManager9.Enabled = false; trackManager9.Visible = false; trackManager10.Enabled = false; trackManager10.Visible = false; //---------------------------------- looseMenu.Visible = false; looseMenu.Enabled = false; helpMenu.Visible = false; helpMenu.Enabled = false; enter.Visible = false; enter.Enabled = false; selectType.Enabled = false; selectType.Visible = false; selectGoal.Enabled = false; selectGoal.Visible = false; base.Initialize(); }