コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: PrinceGosplana/lola
 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;
     }
 }