public UnitMoveAnimator(IGridUnitManager gridUnitManager, IGridInputManager gridInputManager,
                         ICommandQueue commandQueue, ILogger logger)
 {
     _gridUnitManager  = gridUnitManager;
     _gridInputManager = gridInputManager;
     _commandQueue     = commandQueue;
     _logger           = logger;
 }
Ejemplo n.º 2
0
 public SingleTileMapEditorTool(ISingleTileMapEditorToolDelegate @delegate,
                                IGridCellHighlightPool gridCellHighlightPool,
                                IGridInputManager gridInputManager)
 {
     _delegate = @delegate;
     _gridCellHighlightPool = gridCellHighlightPool;
     _gridInputManager      = gridInputManager;
 }
Ejemplo n.º 3
0
 public UnitDestinationSelector(IGridUnitManager gridUnitManager,
                                IGridInputManager gridInputManager,
                                IGridPositionCalculator gridPositionCalculator,
                                IGridCellHighlightPool gridCellHighlightPool,
                                ILogger logger)
 {
     _gridUnitManager        = gridUnitManager;
     _gridInputManager       = gridInputManager;
     _gridPositionCalculator = gridPositionCalculator;
     _gridCellHighlightPool  = gridCellHighlightPool;
     _logger     = logger;
     _validTiles = new HashSet <IntVector2>();
 }
 public UnitDragAndDropHandler(IGridInputManager gridInputManager,
                               IGridUnitManager gridUnitManager,
                               IGridPositionCalculator gridPositionCalculator,
                               ICommandQueue commandQueue,
                               IUnitTransformRegistry unitTransformRegistry,
                               ILogger logger)
 {
     _gridInputManager       = gridInputManager;
     _gridUnitManager        = gridUnitManager;
     _gridPositionCalculator = gridPositionCalculator;
     _commandQueue           = commandQueue;
     _unitTransformRegistry  = unitTransformRegistry;
     _logger = logger;
 }
 public DrawingInputManager(Camera camera,
                            EventSystem eventSystem,
                            IDrawingViewController drawingViewController,
                            ILogger logger,
                            ICommandQueue commandQueue,
                            IGridInputManager gridInputManager,
                            IDrawableTileRegistry drawableTileRegistry)
 {
     _camera                = camera;
     _eventSystem           = eventSystem;
     _drawingViewController = drawingViewController;
     _logger                = logger;
     _commandQueue          = commandQueue;
     _gridInputManager      = gridInputManager;
     _drawableTileRegistry  = drawableTileRegistry;
 }
Ejemplo n.º 6
0
        internal void Construct(BatchUnitSelectionDetector batchUnitSelectionDetector,
                                BatchUnitMenuViewController batchUnitMenuViewController,
                                IGridCellHighlighter gridCellHighlighter,
                                IGridInputManager gridInputManager,
                                IUnitSpawnViewController unitSpawnViewController,
                                IInputLock inputLock,
                                ILogger logger)
        {
            _batchUnitSelectionDetector  = batchUnitSelectionDetector;
            _batchUnitMenuViewController = batchUnitMenuViewController;
            _gridCellHighlighter         = gridCellHighlighter;
            _gridInputManager            = gridInputManager;
            _unitSpawnViewController     = unitSpawnViewController;
            _inputLock = inputLock;
            _logger    = logger;

            Preconditions.CheckNotNull(_addUnitsButton, _batchSelectButton, _cancelButton, _buttonGroup, _cancelGroup);
        }
Ejemplo n.º 7
0
        public MapElementSelectionDetector([Inject(Id = MapEditorInstaller.SECTION_TILE_EDITOR_ID)]
                                           IMapEditorTool sectionTileEditor,
                                           [Inject(Id = MapEditorInstaller.UNIT_TILE_EDITOR_ID)]
                                           IMapEditorTool unitTileEditor,
                                           [Inject(Id = MapEditorInstaller.PLAYER_UNITS_TILE_EDITOR_ID)]
                                           IMapEditorTool playerUnitsTileEditor,
                                           IMapElementMenuViewController mapElementMenuViewController,
                                           IGridInputManager gridInputManager,
                                           IInputLock inputLock)
        {
            _mapElementMenuViewController = mapElementMenuViewController;
            _gridInputManager             = gridInputManager;
            _inputLock = inputLock;

            // TODO: Try to find a way to inject this array even though the implementations are bound with ID.
            _mapEditorTools = new List <IMapEditorTool> {
                sectionTileEditor,
                unitTileEditor,
                playerUnitsTileEditor
            };
        }
Ejemplo n.º 8
0
 public GridUnitInputManager(IGridInputManager gridInputManager, IGridUnitManager gridUnitManager)
 {
     _gridInputManager = gridInputManager;
     _gridUnitManager  = gridUnitManager;
 }
Ejemplo n.º 9
0
 public GridCellHighlighter(IGridInputManager gridInputManager,
                            IGridCellHighlightPool gridCellHighlightPool)
 {
     _gridInputManager      = gridInputManager;
     _gridCellHighlightPool = gridCellHighlightPool;
 }