public CadernoDeAtividades(int id, Game1 parent, Episodio01 ep)
     : base(id, parent)
 {
     questions = ep;
     Initialize();
 }
Пример #2
0
        protected override void Initialize()
        {
            base.Initialize();

            IsMouseVisible = true;
            graphics.GraphicsDevice.BlendState = BlendState.AlphaBlend;
            spriteBatch = new SpriteBatch(graphics.GraphicsDevice);

            querriedState = StatesIdList.EMPTY_STATE;

            states = new Dictionary <int, GameState>();

            statesStack = new List <GameState>();

            Menu menu = new Menu((int)StatesIdList.MAIN_MENU, this);

            states.Add(menu.ID, menu);

            Episodio01 md = new Episodio01((int)StatesIdList.EPISODE_01, this);

            states.Add(md.ID, md);

            EncerramentoDoEpisodio1 ede1 = new EncerramentoDoEpisodio1((int)StatesIdList.EPISODE_01_END, this);

            states.Add(ede1.ID, ede1);

            RunnerState rs = new RunnerState((int)StatesIdList.RUNNER, this);

            states.Add(rs.ID, rs);

            RunnerWaitState rws = new RunnerWaitState((int)StatesIdList.RUNNER_WAIT, this);

            states.Add(rws.ID, rws);

            RunnerEndState res = new RunnerEndState((int)StatesIdList.RUNNER_END, this, rs);

            states.Add(res.ID, res);

            TutorialState ts = new TutorialState((int)StatesIdList.RUNNER_TUTORIAL, this);

            states.Add(ts.ID, ts);

            CadernoDeAtividades cda = new CadernoDeAtividades((int)StatesIdList.OPTIONS, this, md);

            states.Add(cda.ID, cda);

            PauseState ps = new PauseState((int)StatesIdList.PAUSE, this);

            states.Add(ps.ID, ps);

            CharSelectionState css = new CharSelectionState((int)StatesIdList.CHAR_SELECTION, this);

            states.Add(css.ID, css);

            LoadingState ls = new LoadingState((int)StatesIdList.LOADING, this);

            states.Add(ls.ID, ls);

            CreditsState cs = new CreditsState((int)StatesIdList.CREDITS, this);

            states.Add(cs.ID, cs);



            EnterState(menu.ID);
        }