Exemplo n.º 1
0
 private static List<Character> CreateHeros()
 {
     var heros = new List<Character>();
     var thor = new Character("Thor", 100000, 1000);
     var hulk = new Character("Hulk", 300000, 20);
     heros.Add(hulk);
     heros.Add(thor);
     return heros;
 }
Exemplo n.º 2
0
 private static List<Character> CreateMonsters()
 {
     var monsters = new List<Character>();
     var monster = new Character("Monster", 40000, 2000);
     var monster2 = new Character("Little Bugar", 20000, 300);
     var monster3 = new Character("Loki", 15000, 600);
     monsters.Add(monster);
     monsters.Add(monster2);
     monsters.Add(monster3);
     return monsters;
 }
Exemplo n.º 3
0
        private ConsoleColor GetColour(Character character)
        {
            if (character.Health < 5000)
            {
                return ConsoleColor.Red;
            }

            if (character.Health < 10000)
            {
                return ConsoleColor.Yellow;
            }

            return ConsoleColor.DarkGreen;
        }