// // Constructors // public Scene() { // Make all the managers this.manAnimationFlip = new AnimationFlipManager(2, 1); this.manAnimationFrame = new AnimationFrameManager(4, 1); this.manAnimationMotion = new AnimationMotionManager(1, 1); this.manCollisionPair = new CollisonPairManager(13, 1); this.manGameObject = new GameObjectManager(50, 10); this.manSpriteBatch = new SpriteBatchManager(7, 1); this.manSpriteProxy = new SpriteProxyManager(50, 10); this.manSpriteColProxy = new SpriteCollisonProxyManager(50, 10); this.manTimedEvent = new TimedEventManager(10, 1, SceneManager.Self.AzulClockTime); // Make all the other containers this.gameData = new GameSessionData(); this.hudDisplay = this.CreateHud(); this.collisionBatch = this.manSpriteBatch.Find(SpriteBatch.Name.SpriteCollisions); this.collisionBatch.IsEnabled = false; // Set scene data this.name = Name.UNINITIALIZED; this.lastAzulTime = 0.0f; this.alienCoordinatorId = 0u; this.ufoId = 0u; this.isLoaded = false; this.isPaused = false; this.isMarkedForSceneChange = false; this.isMarkedForRemoval = false; }
private void clearData() { TextureManager.Instance().clear(); ImageManager.Instance().clear(); SpriteBatchManager.Instance().clear(); SpriteProxyManager.Instance().clear(); DisplayManager.Instance().clear(); AnimManager.Instance().clear(); GameObjManager.Instance().clear(); Timer.Clear(); PlayerManager.Instance().clear(); BombManager.Instance().clear(); }