public HeroParty CreateParty() { HeroPartyBuilder hero_party_builder = new HeroPartyBuilder(); PartyDirector director = new PartyDirector(hero_party_builder); director.Construct(); HeroParty party = hero_party_builder.GetResult(); g_hero_party.Add(party); Debug.Log("create_party:" + party.id); if (updateHeroPartyList != null) { updateHeroPartyList(); } return(party); }
public EnemyParty CreateParty() { EnemyPartyBuilder enemy_party_builder = new EnemyPartyBuilder(); PartyDirector director = new PartyDirector(enemy_party_builder); director.Construct(); EnemyParty party = enemy_party_builder.GetResult(); g_enemy_party.Add(party); Debug.Log("create_party:" + party.id); // if (updateHeroPartyList != null) // { // updateHeroPartyList(); // } return(party); }
private void btn_dress_Click(object sender, EventArgs e) { if (cb_dress.Text == "Home") { HomeDirector dir = new HomeDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "Work") { WorkDirector dir = new WorkDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "Waitress") { WaitressDirector dir = new WaitressDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "BatGirl") { BatGirlDirector dir = new BatGirlDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "Protect") { ProtectDirector dir = new ProtectDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "Party") { PartyDirector dir = new PartyDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "Sex") { SexDirector dir = new SexDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "Bride") { BrideDirectory dir = new BrideDirectory(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "Playgirl") { PlaygirlDirector dir = new PlaygirlDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } if (cb_dress.Text == "Merry Christmas") { MerryChristmasDirector dir = new MerryChristmasDirector(girl); dir.Construct(); pictureBox1.Image = girl.GetProduct().Picture; } }