public AcceptTradeForm(TradeForm tradeForm)
 {
     this.TradeForm = tradeForm;
     gameScreen = tradeForm.gameScreen;
     InitializeComponent();
     localize();
 }
 private void StartButton_Click(object sender, EventArgs e)
 {
     this.Hide();
     var myForm = new GameScreen();
     myForm.Closed += (send, args) => this.Close();
     myForm.Show();
 }
        public TradeForm(World world, GameScreen gameScreen)
        {
            this.world = world;
            this.gameScreen = gameScreen;
            this.currentPlayerNumber = this.world.currentPlayerNumber;
            this.currentPlayer = this.world.currentPlayer;

            int nextPlayerNumber = this.currentPlayerNumber + 1;
            if (nextPlayerNumber == this.world.players.Count())
            {
                nextPlayerNumber = 0;
            }
            this.nextPlayer1 = world.players[nextPlayerNumber];
            nextPlayerNumber++;
            if (nextPlayerNumber == this.world.players.Count())
            {
                nextPlayerNumber = 0;
            }
            this.nextPlayer2 = world.players[nextPlayerNumber];

            nextPlayer1Checked = false;
            nextPlayer2Checked = false;
            InitializeComponent();
            NextPlayer1Label.Text = this.nextPlayer1.getName();
            NextPlayer2Label.Text = this.nextPlayer2.getName();
            localize();
            updateCurrentPlayerNameLabel();
        }
 public BankTradeForm(World world, GameScreen gs)
 {
     InitializeComponent();
     this.world = world;
     this.gameScreen = gs;
     this.current = this.world.currentPlayer;
     localize();
 }
        public RobberForm(World world, GameScreen gs)
        {
            InitializeComponent();
            this.world = world;
            this.gameScreen = gs;
            localize();

            makeAllHexesClickable();
        }
 public RemoveCardsForm(Player p, GameScreen gs)
 {
     this.player = p;
     this.gameScreen = gs;
     this.hand = p.getHand();
     InitializeComponent();
     updateLabels();
     updateComboBoxes();
 }
        public World(int humans, int computers, GameScreen gs)
            : this()
        {
            this.gameScreen = gs;
            players.Add(new Player("Bob", Color.Red, this));
            players.Add(new Player("Joe", Color.Blue, this));
            players.Add(new AI_Player("Computer", Color.Orange, this));

            /*
            for (int i = 0; i < humans; i++)
            {
                Player p = new Player
                players.Add(new Player());
            }
            for (int i = 0; i < computers; i++)
            {
                //players.Add(new Computer());
            }
             */
            currentPlayer = this.players[0];
            this.currentPlayer.getHand().modifyFreeRoadPoints(1);
            this.currentPlayer.getHand().modifyFreeSettlementPoints(1);
        }