Example #1
0
 public static HeroBuilder getBuilder()
 {
     if (builder == null)
     {
         builder = new HeroBuilder();
     }
     return(builder);
 }
Example #2
0
        public void SummonHero(int type)
        {
            Hero      h;
            HeroSkill hs;

            h  = HeroBuilder.getBuilder().getHero(type);
            hs = HeroBuilder.getBuilder().getHeroSkill(type);
            if (h != null)
            {
                h.aSkill = hs;
                heroes.Add(h);
            }
        }