示例#1
0
        public Board(IBoardStatus boardStatus,
                     IRobotStatus robotStatus,
                     IActionsManager actionManager,
                     IUIBoardManager uiManager,
                     ILogger logger)
        {
            BoardStatus   = boardStatus ?? throw new ArgumentNullException(nameof(boardStatus));
            RobotStatus   = robotStatus ?? throw new ArgumentNullException(nameof(robotStatus));
            ActionManager = actionManager ?? throw new ArgumentNullException(nameof(actionManager));
            UIManager     = uiManager ?? throw new ArgumentNullException(nameof(uiManager));
            Logger        = logger ?? throw new ArgumentNullException(nameof(logger));

            InitializeComponent();

            BoardStatus.Update(boardPanelWidth: BoardPanel.Width,
                               boardPanelHeight: BoardPanel.Height,
                               roboPanelWidth: RoboPanel.Width,
                               boardPanel: BoardPanel);

            List <Bitmap> imgs = GetImageResources();

            RobotStatus.Update(isPlaced: false,
                               robotPanel: RoboPanel,
                               imgs: imgs);

            Logger.Update(logTextBox: LogTextBox);
        }
 public AspectsController(IAspectsManager aspectsManager, IDomainsManager domainsManager, IActionsManager actionsManager, IMapper mapper, IEnumManager enumManager, ILogChangesManager logChangesManager) : base(logChangesManager)
 {
     _aspectsManager = aspectsManager;
     _actionsManager = actionsManager;
     _domainsManager = domainsManager;
     _mapper         = mapper;
     _enumManager    = enumManager;
 }
示例#3
0
 public ActionsExecutionManager(IActionsManager actionsManager,
                                IActionsValidationManager actionsValidationManager,
                                IActionsTranslator actionsTranslator,
                                IRobotStatus robotStatus,
                                IUIRobotManager uiRobotManager,
                                ILogger logger)
 {
     ActionsManager           = actionsManager ?? throw new ArgumentNullException(nameof(actionsManager));
     ActionsValidationManager = actionsValidationManager ?? throw new ArgumentNullException(nameof(actionsValidationManager));
     ActionsTranslator        = actionsTranslator ?? throw new ArgumentNullException(nameof(actionsTranslator));
     RobotStatus    = robotStatus ?? throw new ArgumentNullException(nameof(robotStatus));
     UIRobotManager = uiRobotManager ?? throw new ArgumentNullException(nameof(uiRobotManager));
     Logger         = logger ?? throw new ArgumentNullException(nameof(logger));
 }
示例#4
0
 public UIBoardManager(IBoardStatus boardStatus,
                       IRobotStatus robotStatus,
                       IActionsManager actionsManager,
                       IActionsValidationManager actionsValidationManager,
                       IActionsExecutionManager actionsExecutionManager,
                       IActionsTranslator actionsTranslator)
 {
     BoardStatus              = boardStatus ?? throw new ArgumentNullException(nameof(boardStatus));
     RobotStatus              = robotStatus ?? throw new ArgumentNullException(nameof(robotStatus));
     ActionsManager           = actionsManager ?? throw new ArgumentNullException(nameof(actionsManager));
     ActionsValidationManager = actionsValidationManager ?? throw new ArgumentNullException(nameof(actionsValidationManager));
     ActionsExecutionManager  = actionsExecutionManager ?? throw new ArgumentNullException(nameof(actionsExecutionManager));
     ActionsTranslator        = actionsTranslator ?? throw new ArgumentNullException(nameof(actionsTranslator));
 }
 public DomainsController(IDomainsManager domainsManager, IMapper mapper, IActionsManager actionsManager, ILogChangesManager logChangesManager) : base(logChangesManager)
 {
     _actionsManager = actionsManager;
     _domainsManager = domainsManager;
     _mapper         = mapper;
 }
示例#6
0
 public ActionsController(IActionsManager actionsManager, IMapper mapper, IEnumManager enumerationManager, ILogChangesManager logChangesManager) : base(logChangesManager)
 {
     _mapper             = mapper;
     _actionsManager     = actionsManager;
     _enumerationManager = enumerationManager;
 }
示例#7
0
 public ApplicationManager(IActionsManager actionsManager)
 {
     _actionsManager = actionsManager;
 }