public MatchControllerBase(IChessMatchCurrentState iMatchCurrentState,
                               IChessAction iChessAction, IFigureOnBoard iFigureOnBoard, ICheckMate iCheckMate, IMoveBack iMoveBack, IGameSaver iGameLoaderSaver, IMatchView_ControllerAPI iMatchView_ContollerAPI)
    {
        ChessMatchCurrentState = iMatchCurrentState;
        ChessAction            = iChessAction;
        FigureOnBoard          = iFigureOnBoard;
        CheckMate               = iCheckMate;
        MoveBack                = iMoveBack;
        GameLoaderSaver         = iGameLoaderSaver;
        MatchView_ControllerAPI = iMatchView_ContollerAPI;

        ChessAction.OnChanged          += OnChangedFunction;
        CheckMate.OnCheck              += SetCheck;
        CheckMate.OnMate               += SetMate;
        FigureOnBoard.OnFigureRecovery += OnFigureRecovery;

        MatchView_ControllerAPI.GetBoardData();
    }
 public ChaturangaMatchController(IChessMatchCurrentState iMatchCurrentState,
                                  IChessAction iChessAction, IFigureOnBoard iFigureOnBoard, ICheckMate iCheckMate, IMoveBack iMoveBack, IGameSaver iGameLoaderSaver, IMatchView_ControllerAPI matchView_ControllerAPI) :
     base(iMatchCurrentState, iChessAction, iFigureOnBoard, iCheckMate, iMoveBack, iGameLoaderSaver, matchView_ControllerAPI)
 {
 }
Exemple #3
0
 public LosAlamosMatchController(IChessMatchCurrentState matchCurrentState,
                                 IChessAction chessAction, IFigureOnBoard figureOnBoard, ICheckMate checkMate, IMoveBack moveBack, IGameSaver gameLoaderSaver, IMatchView_ControllerAPI matchView_ControllerAPI) :
     base(iMatchCurrentState: matchCurrentState,
          iChessAction: chessAction,
          iFigureOnBoard: figureOnBoard,
          iCheckMate: checkMate,
          iMoveBack: moveBack,
          iGameLoaderSaver: gameLoaderSaver,
          iMatchView_ContollerAPI: matchView_ControllerAPI)
 {
 }