示例#1
0
 public static void Draw(Player player, Enemy enemy)
 {
     Console.WriteLine("Score: '{0}' Health: '{1}' Name: '{2}' Damage: '{3}'\n\n", player.Score, player.Health, player.Name, player.Damage());
     Console.WriteLine("Health: '{0}' Name: '{1}'\n\n", enemy.Health, enemy.Name);
 }
示例#2
0
        public static Dictionary<int, Enemy> generateEnemyList()
        {
            Enemy one = new Enemy(0);
            Enemy two = new Enemy(1);
            Enemy three = new Enemy(0);
            Enemy four = new Enemy(1);
            Enemy five = new Enemy(1);
            Enemy finalBoss = new Enemy(2);
            one.Location = rndLoc();
            two.Location = rndLoc();
            three.Location = rndLoc();
            four.Location = rndLoc();
            five.Location = 1;
            finalBoss.Location = 4;
            return new Dictionary<int, Enemy>()
            {
                {0, one },
                {1, two },
                {2,three },
                {3, four },
                {4, five },
                {5, finalBoss}

            };
        }