示例#1
0
        private void CreateMonsters()
        {
            for (int i = 0; i < 10; i++)
            {
                Troll t = new Troll("Troll", 15, 8);
                Point pos = level.GetRandomEmptyPosition();
                t.Position = pos;
                level.Map[pos.X, pos.Y].Monster = t;
                creatures.Add(t);
            }

            for (int i = 0; i < 25; i++)
            {
                Goblin g = new Goblin("Cowardly Goblin", 10, 3);
                Point pos = level.GetRandomEmptyPosition();
                g.Position = pos;
                level.Map[pos.X, pos.Y].Monster = g;
                creatures.Add(g);
            }
        }