Beispiel #1
0
        /// <summary>
        /// Create a game interface from a given game
        /// </summary>
        /// <param name="Game">Game object that is being played</param>
        public GameMapState(AtlasWarriorsGame.Game Game)
        {
            this.G = Game;

            MapView  = new MgUiCommon.MapViewElement(Game, AppGraphicsDevice, AppContentManager);
            LogFont  = AppContentManager.Load <SpriteFont>("GameMapState/LogFont");
            StatFont = AppContentManager.Load <SpriteFont>("GameMapState/StatFont");
        }
        /// <summary>
        /// Create a game interface from a given game
        /// </summary>
        /// <param name="game">Game object that is being played</param>
        /// <param name="metrics">Display metrics of mobile</param>
        public GameMapState(AtlasWarriorsGame.Game game, DisplayMetrics metrics)
        {
            this.G = game;

            LogFont  = AppContentManager.Load <SpriteFont>("GameMapState/LogFont");
            MapView  = new MgUiCommon.MapViewElement(game, AppGraphicsDevice, AppContentManager);
            StatFont = AppContentManager.Load <SpriteFont>("GameMapState/StatFont");

            Dpi = metrics.Xdpi;
        }