public override int GetHashCode() { int hash = 1; if (Won1 != 0) { hash ^= Won1.GetHashCode(); } if (Won2 != 0) { hash ^= Won2.GetHashCode(); } if (Success != false) { hash ^= Success.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public Gameplay(string n1, string n2, string n3, string n4) { InitializeComponent(); Maap.Controls.Add(Zombie); Maap.Controls.Add(Combi); Maap.Controls.Add(lightFire); Maap.Controls.Add(hFire1); Maap.Controls.Add(Tool); Maap.Controls.Add(Food); Maap.Controls.Add(Won1); Maap.Controls.Add(Won2); Maap.Controls.Add(Flu); Maap.Controls.Add(Food2); Maap.Controls.Add(Food3); Food2.BackColor = Color.Transparent; Food3.BackColor = Color.Transparent; Tool.BackColor = Color.Transparent; Food.BackColor = Color.Transparent; Won1.BackColor = Color.Transparent; Won2.BackColor = Color.Transparent; Flu.BackColor = Color.Transparent; lightFire.BackColor = Color.Transparent; hFire1.BackColor = Color.Transparent; Combi.BackColor = Color.Transparent; Zombie.BackColor = Color.Transparent; Zombie.Hide(); lightFire.Hide(); hFire1.Hide(); Won2.Hide(); Tool.Hide(); Won1.Hide(); Flu.Hide(); Food.Hide(); Food2.Hide(); Food3.Hide(); Maap.SendToBack(); Combi.SendToBack(); lightFire.BringToFront(); name1 = n1; name2 = n2; name3 = n3; name4 = n4; p1.Namee = name1; p2.Namee = name2; p3.Namee = name3; p4.Namee = name4; l_P1.Text += p1.Hp; l_P2.Text += p2.Hp; l_P3.Text += p3.Hp; l_P4.Text += p4.Hp; l_Food.Text += chombi.TotalFood; l_CombiHp.Text += chombi.Hp; label_Player1.Text = p1.Namee; label_Player2.Text = p2.Namee; label_Player3.Text = p3.Namee; label_Player4.Text = p4.Namee; tbGameplayMessage.Text += "Empieza el juego, se encuentran en Yucatan \r\n "; }