示例#1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Game()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            graphics.PreferredBackBufferHeight = Constants.WINDOW_NORMAL_SIZE_HEIGHT;
            graphics.PreferredBackBufferWidth = Constants.WINDOW_NORMAL_SIZE_WIDTH;

            localization = new Localization(Constants.LANGUAGE);

            map = new Map();
            referee = new Referee(map);
            io = new IO(this, map, referee, localization);
        }
示例#2
0
文件: IO.cs 项目: vkd/DesktopDungeons
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="parGame">Instance of Game class</param>
        /// <param name="parMap">Instance of Map class</param>
        /// <param name="parReferee">Instance of Referee class</param>
        /// <param name="parLocalization">Instance of Localization class</param>
        public IO(Game parGame, Map parMap, Referee parReferee, Localization parLocalization)
        {
            game = parGame;
            map = parMap;
            referee = parReferee;
            localization = parLocalization;

            InformationInMenu = "";
            CurrentMagicIndex = -1;
        }