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(); }
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; }
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; }
/// <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; }
public HexDebugger(IMouseInputManager UserInputManager, IHexHighlighter HexHighlighter) { this.UserInputManager = UserInputManager; this.HexHighlighter = HexHighlighter; }
/// <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; }
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; }