Exemple #1
0
        static void Main(string[] args)
        {
            switch (Intro.StartGame())
            {
            case "wizard":
                Hero wizard = new Wizard()
                {
                    Name                = Intro.GetName(),
                    CharacterClass      = "Wizard",
                    Health              = 30,
                    Armor               = 6,
                    FireballAttackMax   = 13,
                    LightningAttackMax  = 15,
                    WildFireAttackMax   = 17,
                    HealthPotionsAmount = 4,
                    SpecialAttackNumber = 2
                };
                wizard.GetStats();
                Journey.StartJourney(wizard);
                break;

            case "warrior":
                Hero warrior = new Warrior()
                {
                    Name                = Intro.GetName(),
                    CharacterClass      = "Warrior",
                    Health              = 35,
                    Armor               = 8,
                    SwordAttackMax      = 10,
                    AxeAttackMax        = 12,
                    MaceAttackMax       = 15,
                    HealthPotionsAmount = 3,
                    SpecialAttackNumber = 3
                };
                warrior.GetStats();
                Journey.StartJourney(warrior);
                break;

            case "hunter":
                Hero hunter = new Hunter()
                {
                    Name                = Intro.GetName(),
                    CharacterClass      = "Hunter",
                    Health              = 30,
                    Armor               = 6,
                    DaggerAttackMax     = 9,
                    BowAttackMax        = 13,
                    CrossbowAttackMax   = 15,
                    HealthPotionsAmount = 4,
                    SpecialAttackNumber = 4
                };
                hunter.GetStats();
                Journey.StartJourney(hunter);
                break;
            }

            Console.ReadLine();
        }