//--------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright (C)2007 DW Studios. All rights reserved. // //--------------------------------------------------------------------------------------------------------------------------------------------------- // {License Information: Creative Commons} //--------------------------------------------------------------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DW.Globals { /// /// Class containing all Enums. /// Enums are int32 by default. /// We override enum "name" : byte for memory optimization /// public static class Enums { /// /// Major Mode of Execution /// public enum EngineState : byte { /// /// None /// NONE_SELECTED, /// /// Linear play /// MENU_MODE, /// /// Free Play mode /// GAME_MODE }; //=== Major Mode of Execution /// /// Major Mode of Execution /// public enum MenuState : byte { /// /// Loser! (Set by ELeMentalGame) /// GAME_OVER, // The rest of these should be modified only by the GameScreen /// /// Bye bye /// EXIT, /// /// Title - First screen visible upon launching game /// TITLE_SCREEN, /// /// Game Setup - Second screen visible, interactive menu goes here /// GAME_SETUP, /// /// Wat up world :-> - Third screen visible, please do NOT remove the DarkWynter label /// CREDITS, /// /// Loading... Please Wait - Only runs if the game takes a while to load /// LOAD_LEVEL, /// /// Instruction Screen - Used in between levels 1 and 2, if there are seperate levels /// INSTRUCTION_SCREEN_1, /// /// Second Instruction Screen - Used in between levels 2 and 3, if there are seperate levels /// INSTRUCTION_SCREEN_2, /// /// final game screen - End the game and get out /// FINALGAMESCREEN, /// /// Pause - PauseScreen.cs must be programmed for this to work5 /// GAME_PAUSE }; /// /// Major Mode of Execution /// public enum ViewMode : byte { /// /// Game tuns in a single screen - up to 4 players /// SINGLE_SCREEN, /// /// Game is split screened - up to 4 players /// SPLIT_SCREEN, /// /// None selected /// NONE }; /// /// Minor Mode of Execution within EngineState.GAME_MODE /// public enum GameType : byte { /// /// None /// NONE_SELECTED, /// /// Linear play /// STORY_MODE, /// /// Free Play mode /// FREE_PLAY }; /// /// Tells Menu System which direction was pressed. /// public enum MenuDirection : byte { /// /// Up key was pressed /// UP, /// /// Down key was pressed /// DOWN, /// /// Left key was pressed /// LEFT, /// /// Right key was pressed /// RIGHT, /// /// Start key was pressed /// START, /// /// Back key was pressed /// BACK } /// /// Menu System Elements /// public enum MenuElementType : byte { /// /// Button /// BUTTON, /// /// Options /// OPTION, /// /// Values /// VALUE, /// /// Label /// LABEL, /// /// Image scroll /// IMAGE_SCROLL, /// /// Image /// IMAGE_DISPLAY, /// /// None /// NONE }; /// /// Type of Displays /// public enum DisplayType : byte { /// /// Text /// TEXT, /// /// Value /// VALUE, /// /// Image /// IMAGE, /// /// Base /// BASE }; /// /// Different mouse control types /// public enum ControlType : byte { /// /// Motion Type /// Motion, /// /// Right Button Type /// RightButton, /// /// Left Button Type /// LeftButton, /// /// Middle Button Type /// MiddleButton, /// /// Scroll Wheel Type /// ScrollWheel }; } }