コード例 #1
0
        protected override void Initialize()
        {
            Stats     stats1  = new Stats(20, 20, 2, 1243, 1, 2, 3, 2, 2);
            SkillList skills1 = new SkillList(4);

            skills1.add(new MagicSkill("Whipshot", new SpCost(3), new SkillEffect(1), 4));
            PlayerCharacter p1 = new PlayerCharacter("James", stats1, skills1);


            Stats     stats2  = new Stats(20, 20, 2, 1243, 1, 2, 3, 2, 2);
            SkillList skills2 = new SkillList(4);

            skills2.add(new MagicSkill("Flail", new SpCost(3), new SkillEffect(1), 4));
            PlayerCharacter p2 = new PlayerCharacter("Jordan", stats2, skills2);


            List <Character> allies = new List <Character>();

            allies.Add(p1);

            List <Character> enemies = new List <Character>();

            enemies.Add(p2);

            Battle b = new Battle(allies, enemies);

            Console.Write(b.ToString());

            b.UseSkill(p1.SkillList.GetSkillAt(0), p1, p2);
            Console.Write(b.ToString());

            base.Initialize();
        }