public SceneManager(SpriteManager spm, SoundManager som) { scenes = new Dictionary<EScene,AScene>(); scenes.Add(EScene.LEVEL, new Play(this, spm, som)); scenes.Add(EScene.PAUSE, new Pause(this, spm, som)); scenes.Add(EScene.LEGEND, new Legend(this, spm, som)); scenes.Add(EScene.TITLE, new TitleScreen(this, spm, som)); scenes.Add(EScene.WIN, new WinScreen(this, spm, som)); spm_ = spm; som_ = som; activateScene(EScene.TITLE); exit_ = false; lastState = GamePad.GetState(PlayerIndex.One); currentState = GamePad.GetState(PlayerIndex.One); }
public WinScreen(SceneManager sm, SpriteManager spm, SoundManager som) : base(sm, spm, som) { lastState = GamePad.GetState(PlayerIndex.One); sm_ = sm; }
public Legend(SceneManager scm, SpriteManager spm, SoundManager som) : base(scm, spm, som) { lastState = GamePad.GetState(PlayerIndex.One); textPos = Vector2.Zero; }
public TitleScreen(SceneManager sm, SpriteManager spm_, SoundManager som) : base(sm, spm_, som) { lastState = GamePad.GetState(PlayerIndex.One); som_.play(SoundManager.ESound.BEGIN); }
public Play(SceneManager sm, SpriteManager spm, SoundManager som) : base(sm, spm, som) { load(); }
public Pause(SceneManager sm, SpriteManager spm, SoundManager som) : base(sm, spm, som) { recent = false; }
public AScene(SceneManager scm, SpriteManager spm, SoundManager som) { scm_ = scm; spm_ = spm; som_ = som; }