/// <summary> /// Creates a player and the player form. /// </summary> /// <param name="players"></param> /// <param name="playerForm"></param> public PlayerPresenter(IPlayerForm playerForm, IGameForm gameForm) { player1 = new Player(); player2 = new Player(); myPlayerForm = playerForm; playerList = new List <IPlayer>(); myGameForm = gameForm; myPlayerForm.Load += MyPlayerForm_Load; }
public GameForm(IPlayerForm playerForm) { InitializeComponent(); Owner = (Form)playerForm; myPlayerForm = playerForm; loadPictureBox(); //List<Player> playerList = new List<Player>(); //playerList.Add(new Player()); game = new Game(); changeImages(); diceList = new List <Dice>(); }