private void button1_Click(object sender, EventArgs e) { God hero1 = new Poseidon(); God hero2 = new Poseidon(); hero2.setName("Bob"); God hero3 = new Poseidon(); hero3.setName("Sam"); God hero4 = new Poseidon(); hero4.setName("Bilbo"); God hero5 = new Poseidon(); hero5.setName("Frodo"); Party heroParty = new Party(); Dictionary <String, God> hero_list = new Dictionary <String, God>(); hero_list.Add(hero1.getName(), hero1); hero_list.Add(hero2.getName(), hero2); hero_list.Add(hero3.getName(), hero3); hero_list.Add(hero4.getName(), hero4); hero_list.Add(hero5.getName(), hero5); NewGameForm newGame = new NewGameForm(heroParty, hero_list); this.Hide(); //gameWorld = new World(); }
private void button1_Click(object sender, EventArgs e) { God hero1 = new Poseidon(); God hero2 = new Zeus(); God hero3 = new Ares(); God hero4 = new Hades(); God hero5 = new Nike(); God hero6 = new Nemesis(); God hero7 = new Tyche(); God hero8 = new Aphrodite(); Party heroParty = new Party(); Dictionary <String, God> hero_list = new Dictionary <String, God>(); hero_list.Add(hero1.Name, hero1); hero_list.Add(hero2.Name, hero2); hero_list.Add(hero3.Name, hero3); hero_list.Add(hero4.Name, hero4); hero_list.Add(hero5.Name, hero5); hero_list.Add(hero6.Name, hero6); hero_list.Add(hero7.Name, hero7); hero_list.Add(hero8.Name, hero8); NewGameForm newGame = new NewGameForm(ref heroParty, ref hero_list); //InventoryState newInventory = new InventoryState(); //inventory = newInventory.toInventory(); this.Hide(); //gameWorld = new World(); }