예제 #1
0
        public ClassSquad()
        {
            stashList  = new List <ClassItem>();
            rosterList = new List <ClassSoldier>();
            memberList = new List <ClassSoldier>();

            Random      rd      = new Random();
            int         result  = rd.Next(0, 100);
            int         spec    = rd.Next(0, 5);
            CaptainSpec capSpec = (CaptainSpec)spec;

            EditSquadInfo("NPC_Team_" + result.ToString(), "Host_" + result.ToString(), capSpec, false);
            captain            = new ClassCaptain();
            captain.specialism = capSpec;
            hierophant         = new ClassHierophant();
            spec = rd.Next(0, 3);
            HeroSpec heroSpec = (HeroSpec)spec;

            hierophant.specialism = heroSpec;
            credit = 500;

            result = rd.Next(1, 8);

            memberList = new List <ClassSoldier>();
            for (int i = 0; i < result; i++)
            {
                ClassSoldier soldier = new ClassSoldier();
                memberList.Add(soldier);
            }
        }
예제 #2
0
        public ClassGameStore()
        {
            stashList   = new List <ClassItem>();
            soldierList = new List <ClassSoldier>();

            for (int i = 0; i < 50; i++)
            {
                ClassItem item = new ClassItem();
                stashList.Add(item);
            }
            for (int i = 0; i < 50; i++)
            {
                ClassSoldier soldier = new ClassSoldier();
                soldierList.Add(soldier);
            }
        }