示例#1
0
    public List <Event> SetSpecialEvents()
    {
        List <Event> events = new List <Event>();

        Event tSecurity = new TownSecurity();

        events.Add(tSecurity);

        Event diseaseFall = new DiseaseFall();

        events.Add(diseaseFall);

        Event traitor = new Traitor();

        events.Add(traitor);

        Event mercenaries = new Mercenaries();

        events.Add(mercenaries);

        Event spy = new Spy();

        events.Add(spy);

        Event boss = new BossEncounter();

        events.Add(boss);

        return(events);
    }
示例#2
0
        // TestData
        void CreateTestData()
        {
            PlayerCharacter = new Character("Player", 0, new Health(100, 100));
            foreach (var skill in new Skill [] { new Skill("Heal"), new Skill("Shield"), new Skill("Fire"), new Skill("Lightning"), new Skill("Poison") })
            {
                PlayerCharacter.AddSkill(skill);
            }

            for (int i = 0; i < 4; ++i)
            {
                Mercenaries.Add(new Character($"Character {i}", i + 1, new Health(100, 100)));
            }
            Enemies.Add(new Character("Enemy", 5, new Health(100, 100)));

            CurrentMap = "BeachMap";
        }