protected override void LoadContent()
        {
            m_texturePointer = this.Game.Content.Load<Texture2D>("pointer");

            #if !XBOX360
            m_mim = this.Game.Services.GetService(typeof(IMouseInputManager)) as IMouseInputManager;
            #endif

            base.LoadContent();
        }
Beispiel #2
0
        public UnitHexHighlights(IMouseInputManager UserInputManager, IHexHighlighter HexHighlighter, IUnitSelectionManager UnitSelectionManager,
                                 IHexDatabase HexDatabase, IUnitAttackManager UnitAttackManager)
        {
            this.UnitSelectionManager = UnitSelectionManager;
            this.HexHighlighter       = HexHighlighter;
            this.UserInputManager     = UserInputManager;
            this.HexDatabase          = HexDatabase;
            this.UnitAttackManager    = UnitAttackManager;

            UnitSelectionManager.UnitSelected   += UnitSelected;
            UnitSelectionManager.UnitUnselected += UnitUnselected;

            UserInputManager.HexUnderMouseChanged += OnHexUnderMouseChanged;
        }
Beispiel #3
0
        public SelectableHexHighlights(IMouseInputManager UserInputManager, ISelectionManager SelectionManager, IHexHighlighter HexHighlighter, ITurnManager TurnManager)
        {
            this.UserInputManager = UserInputManager;
            this.HexHighlighter   = HexHighlighter;
            this.SelectionManager = SelectionManager;
            this.TurnManager      = TurnManager;

            SelectionManager.HexSelected   += OnHexSelected;
            SelectionManager.HexUnselected += OnHexUnselected;

            SelectionManager.SelectableSelected   += SelectableSelected;
            SelectionManager.SelectableUnselected += OnSelectableUnselected;

            UserInputManager.HexPressedDown += OnHexPressedDown;
            UserInputManager.MouseReleased  += OnMouseReleased;

            UserInputManager.HexUnderMouseChanged += OnHexUnderMouseChanged;
        }
Beispiel #4
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     MouseMgr = this.Services.GetService(typeof(IMouseInputManager)) as IMouseInputManager;
     FontMgr = this.Services.GetService(typeof(IFontManager)) as IFontManager;
 }
Beispiel #5
0
 public HexDebugger(IMouseInputManager UserInputManager, IHexHighlighter HexHighlighter)
 {
     this.UserInputManager = UserInputManager;
     this.HexHighlighter   = HexHighlighter;
 }
Beispiel #6
0
 /// <summary>
 /// LoadContent will be called once per game and is the place to load
 /// all of your content.
 /// </summary>
 protected override void LoadContent()
 {
     #if !XBOX360
     MouseMgr = this.Services.GetService(typeof(IMouseInputManager)) as IMouseInputManager;
     #endif
     FontMgr = this.Services.GetService(typeof(IFontManager)) as IFontManager;
 }
Beispiel #7
0
        protected override void LoadContent()
        {
            #if !XBOX360
            MouseMgr = this.Game.Services.GetService(typeof(IMouseInputManager)) as IMouseInputManager;
            #endif
            FontMgr = this.Game.Services.GetService(typeof(IFontManager)) as IFontManager;

            // TODO: Add your initialization logic here
            if (this.SpriteB == null)
            {
                this.SpriteB = new SpriteBatch(this.GraphicsDevice);
            }

            XnaGame xgcGame = this.Game as XnaGame;
        }