//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DW Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {License Information: Creative Commons} //--------------------------------------------------------------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework; using DarkWynter.Engine.Controllers; /// /// Scope of all Globals in the game, includes Enums and Statics /// namespace DW.Globals { /// /// Class containing all global information the game uses, instead of object passing /// public static class Statics { /// /// Global handle on the main game file, used for Controllers but can also be used /// to trace into the code if handles are not immediatly available /// public static AISample _self; /// /// Used to set the type of game you are making, choices are single screen and split screen /// If splitscreen, can have up to 4 splits - huds are also split /// public static Enums.ViewMode viewMode; /// /// Controller Manager, used to handle which mode the game is in and use the appropriate controllers /// public static ControllerManager controllerManager; /// /// Current Menu Execution Mode /// public static Enums.MenuState menuState = Enums.MenuState.TITLE_SCREEN; /// /// Current state the game is in - either menuState or gameState /// public static Enums.EngineState engineState; /// /// Number of players currently in game /// Either Menu System or the Controller System should set this /// public static int PLAYERCOUNT = 0; /// /// Max number of players = max number of controllers /// public static int PLAYERCOUNTMAX = 4; public static int MAP_WALKABLE_CHARACTER = 0; #if!XBOX360 public static float XBOX_CUT = .0f; #endif } }