Example #1
0
        public MainForm()
        {
            InitializeComponent();

            InfoDisplay info = new InfoDisplay();
            info.lblNbRoche = this.lblQtRoche;
            info.lblTour = this.lblTour;
            info.lblNbBle = this.lblQtBle;
            info.lblNbBois = this.lblQtBois;
            info.lblNbBrique = this.lblQtBrique;
            info.lblNbMouton = this.lblQtMouton;

            ControlElements ctrl = new ControlElements();
            ctrl.btnConstruireColonie = this.btnConstruireColonie;
            ctrl.btnConstruireRoute = this.btnConstruireRoute;
            ctrl.btnConstruireVille = this.btnConstruireVille;
            ctrl.btnRejoindrePartie = this.btnRejoindrePartie;
            ctrl.btnTerminerTour = this.btnTerminerTour;

            board = new Board(info, ctrl);
            this.flowLayoutPanel1.Controls.Add(board);
        }
 public ConnectionControleur(Board board)
 {
     this.board = board;
 }
 public TourControlleur(Board board, Connection conn)
 {
     this.board = board;
     this.conn = conn;
 }
 public ConstructionControleur(Board board, Connection conn)
 {
     this.board = board;
     this.conn = conn;
 }