Beispiel #1
0
 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);
 }
Beispiel #2
0
 public WinScreen(SceneManager sm, SpriteManager spm, SoundManager som)
     : base(sm, spm, som)
 {
     lastState = GamePad.GetState(PlayerIndex.One);
     sm_ = sm;
 }
Beispiel #3
0
 public Legend(SceneManager scm, SpriteManager spm, SoundManager som)
     : base(scm, spm, som)
 {
     lastState = GamePad.GetState(PlayerIndex.One);
     textPos = Vector2.Zero;
 }
Beispiel #4
0
 public TitleScreen(SceneManager sm, SpriteManager spm_, SoundManager som)
     : base(sm, spm_, som)
 {
     lastState = GamePad.GetState(PlayerIndex.One);
     som_.play(SoundManager.ESound.BEGIN);
 }
Beispiel #5
0
 public Play(SceneManager sm, SpriteManager spm, SoundManager som)
     : base(sm, spm, som)
 {
     load();
 }
Beispiel #6
0
 public Pause(SceneManager sm, SpriteManager spm, SoundManager som)
     : base(sm, spm, som)
 {
     recent = false;
 }
Beispiel #7
0
 public AScene(SceneManager scm, SpriteManager spm, SoundManager som)
 {
     scm_ = scm;
     spm_ = spm;
     som_ = som;
 }