Exemplo n.º 1
0
        public PlayForm(GameLogic.GameTypes Type, GameLogic.AILevels Difficuly, List <GameLogic.Boat> PlayerBoats, string Name_ = "Player", string OpponentName = "AI")
        {
            InitializeComponent();
            gameType     = Type;
            AIDifficuly  = Difficuly;
            playerName   = Name_;
            opponentName = OpponentName;
            playerBoats  = PlayerBoats;

            // make listVIew look like a listBox
            logListView.Columns.Add("", -2);

            playerDisplay   = new DisplayBoard(setPlayerBoard, setBoatsAfter: setupPlayerBoats);
            opponentDisplay = new DisplayBoard(setOpponentBoard,
                                               playTableLabel_MouseClick,
                                               playTableLabel_MouseEnter,
                                               playTableLabel_MouseLeave);
        }
Exemplo n.º 2
0
 public SetupBoardForm()
 {
     playerDisplay = new DisplayBoard(setSetupBoard, setupTableLabel_Click, setupTableLabel_MouseEnter, setupTableLabel_MouseLeave);
     InitializeComponent();
 }