//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DarkWynter Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {Contact : darkwynter.com for licensing information //--------------------------------------------------------------------------------------------------------------------------------------------------- namespace DarkWynter.Game.Menus { #region Using Statements using System; using System.Collections.Generic; using System.Diagnostics; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; using System.Threading; using System.Xml; using DarkWynter.Engine.Audio; using DarkWynter.Engine.Globals; using DarkWynter.Engine.ObjectLib; using DarkWynter.Engine.Controllers; using DarkWynter.Engine.Utilities; using DarkWynter.Engine.Menus; #endregion /// /// Controls all of the menu screen and menu items /// public class GameMenuSystem : MenuSystem { /// /// Constructor /// public GameMenuSystem() :base() { menuScreens.Add(new SorryScreen(Enums_Engine.EngineState.NOT_SUPPORTED)); menuScreens.Add(new TitleScreen(Enums_Engine.EngineState.TITLE_SCREEN)); menuScreens.Add(new GameSetup(Enums_Engine.EngineState.GAME_SETUP)); menuScreens.Add(new LoadingScreen(Enums_Engine.EngineState.LOAD_LEVEL)); menuScreens.Add(new PauseScreen(Enums_Engine.EngineState.GAME_PAUSE)); menuScreens.Add(new GameOverScreen(Enums_Engine.EngineState.FINALIZE_G2LSTUFF)); } /// /// Updates the controller and then the current active screen /// /// Current Object Library public override void Update(ObjectLibrary objectLibrary) { base.Update(objectLibrary); } /// /// Draws the appropriate screen /// /// SpriteBatch used to draw /// Current ScreenSaver public override void Draw(SpriteBatch spriteBatch, ScreenSaver screenSaver) { base.Draw(spriteBatch, screenSaver); } } }