Ejemplo n.º 1
0
        public void HealFist()
        {
            Weapon Fist = new Fists();

            Fist.Create();
            WeaponList[0] = Fist;
        }
Ejemplo n.º 2
0
        public void NewPlayer()  //init player
        {
            health                 = 100;
            maxHealth              = 100;
            dead                   = false;
            attackDamage           = 7;
            numHealthPotions       = 3;
            healthPotionHealAmount = 35;
            numFood                = 100;
            enemiesKilled          = 0; // part of score
            stamina                = 5;
            speed                  = 5;
            running                = true;
            hungerCounter          = 0;
            Weapon Fist = new Fists();

            Fist.Create();
            WeaponList[0] = Fist;
            Weapon EmptySlot = new EmptyWeaponSlot();

            EmptySlot.Create();
            WeaponList[1]     = EmptySlot;
            WeaponList[2]     = EmptySlot;
            WeaponList[3]     = EmptySlot;
            WeaponList[4]     = EmptySlot;
            score             = 0;
            TotalHourAte      = 0;
            waitHungerWarning = 0;
        }
Ejemplo n.º 3
0
        public void NewPlayer()  //init player
        {
            health                 = 100;
            maxHealth              = 100;
            dead                   = false;
            attackDamage           = 7;
            numHealthPotions       = 3;
            healthPotionHealAmount = 35;
            numFood                = 100;
            enemiesKilled          = 0; // part of score
            stamina                = 5;
            speed                  = 5;
            running                = true;
            hungerCounter          = 0;
            Weapon Fist = new Fists();

            Fist.Create();
            //WeaponList[0]=Fist;
            Weapon EmptySlot = new EmptyWeaponSlot();

            EmptySlot.Create();
            WeaponList = new Weapon[5] {
                Fist, EmptySlot, EmptySlot, EmptySlot, EmptySlot
            };
            //WeaponList[2]=EmptySlot;
            //WeaponList[3]=EmptySlot;
            //WeaponList[4]=EmptySlot;
            Spell Empty = new EmptySpellSlot();

            Empty.Create();
            SpellBook = new Spell[5] {
                Empty, Empty, Empty, Empty, Empty
            };
            //SpellBook[0] = Empty;
            //SpellBook[1] = Empty;
            //SpellBook[2] = Empty;
            //SpellBook[3] = Empty;
            //SpellBook[4] = Empty;
            score             = 0;
            TotalHourAte      = 0;
            waitHungerWarning = 0;
            exp            = 0;
            expToNextLevel = 2;
            Lvl            = 1;
            MP             = 25;
            AP             = 5;
            stats.Add("strength", 0);
            stats.Add("speed", 0);
            stats.Add("health", 0);
            stats.Add("defence", 0);
            stats.Add("magic", 0);
            stats.Add("precision", 0);
            stats.Add("luck", 0);
            Console.WriteLine("Welcome young traveller! What do you want to be called?");
            name = Console.ReadLine().ToUpper();
            if (name == "NARPA")
            {
                health    = 99999;
                maxHealth = 99999;
                Weapon NarpasSword = new NarpasSword();
                NarpasSword.Create();
                WeaponList[1] = NarpasSword;
                stamina       = 999;
                speed         = 999;
            }
        }