public SkillSelectionManager(IHexDatabase HexDatabase, IUnitSelectionManager UnitSelectionManager, ISelectionManager SelectionManager, ICrossPlayerController CrossPlayerController) { this.HexDatabase = HexDatabase; this.UnitSelectionManager = UnitSelectionManager; this.CrossPlayerController = CrossPlayerController; SelectionManager.HexClicked += OnHexClicked; }
public UnitMovementManager(IUnitSelectionManager UnitSelectionManager, ISelectionManager SelectionManager, IHexDatabase HexDatabase, ICrossPlayerController CrossPlayerController) { this.UnitSelectionManager = UnitSelectionManager; this.SelectionManager = SelectionManager; this.HexDatabase = HexDatabase; this.CrossPlayerController = CrossPlayerController; SelectionManager.HexClicked += OnHexClicked; CrossPlayerController.MoveUnitCallback += OnMoveUnitCallback; }
public UnitAttackManager(IUnitSelectionManager UnitSelectionManager, ISelectionManager SelectionManager, ICrossPlayerController CrossPlayerController, IHexDatabase HexDatabase) { this.UnitSelectionManager = UnitSelectionManager; this.SelectionManager = SelectionManager; this.CrossPlayerController = CrossPlayerController; this.HexDatabase = HexDatabase; SelectionManager.HexClicked += OnHexClicked; SelectionManager.SelectableClicked += OnSelectableClicked; UnitSelectionManager.UnitSelected += OnUnitSelected; UnitSelectionManager.UnitUnselected += UnitUnselected; }
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 void CreateSomeUnit() { Container = TestUtility.CreateContainer(); HexDatabase = Container.Resolve <IHexDatabase>(); TurnManager = Container.Resolve <ITurnManager>(); SelectionManager = Container.Resolve <ISelectionManager>(); UnitAttackManager = Container.Resolve <IUnitAttackManager>(); UnitSelectionManager = Container.Resolve <IUnitSelectionManager>(); CrossPlayerController = Container.Resolve <ICrossPlayerController>(); m_Unit0 = TestUtility.CreateUnit(new int2(0, 0), 0); m_Unit1 = TestUtility.CreateUnit(new int2(2, 0), 1); HexDatabase.AddNewSelectable(m_Unit0); HexDatabase.AddNewSelectable(m_Unit1); }