Пример #1
0
        public PlayerCharacter( Armor[] armor, string name, int[] stats, Weapon weapon, LevelTract pclass, ClassEnum classes )
            : base(armor,  name, stats, weapon, pclass)
        {
            /* start constructor */

            mExperience = 1000;
            mClass = pclass;
            mIsPlayer = true;
            mClassEnum = classes;

            mClass.LevelUp(1);
        }
Пример #2
0
        private void setBlackMage()
        {
            /* start setBlackMage */

            mStats = new int[Character.MAXSTATS];

            mStats[(int)StatEnum.AGILITY] = 1;
            mStats[(int)StatEnum.MAGIC] = 30;
            mStats[(int)StatEnum.STAMINA] = 3;
            mStats[(int)StatEnum.STRENGTH] = 10;

            mArmor = ArmorFactory.getInstance().getBasicArmorSet(ClassEnum.BLACKMAGE);
            mWeapon = WeaponFactory.getWeapon(WeaponEnum.WETRIEDSTAFF);
            mClass = new BlackMage(mStats);
        }
Пример #3
0
        private void setWarrior()
        {
            /* start setWarrior */

            mStats = new int[Character.MAXSTATS];

            mStats[(int)StatEnum.AGILITY] = 15;
            mStats[(int)StatEnum.MAGIC] = 1;
            mStats[(int)StatEnum.STAMINA] = 5;
            mStats[(int)StatEnum.STRENGTH] = 30;

            mArmor = ArmorFactory.getInstance().getBasicArmorSet(ClassEnum.WARRIOR);
            mWeapon = WeaponFactory.getWeapon(WeaponEnum.WETIREDSWORD);
            mClass = new Warrior(mStats);
        }
Пример #4
0
        private void setTheif()
        {
            /* start setTheif */

            mStats = new int[Character.MAXSTATS];

            mStats[(int)StatEnum.AGILITY] = 30;
            mStats[(int)StatEnum.MAGIC] = 1;
            mStats[(int)StatEnum.STAMINA] = 3;
            mStats[(int)StatEnum.STRENGTH] = 15;

            mArmor = ArmorFactory.getInstance().getBasicArmorSet(ClassEnum.THIEF); ;
            mWeapon = WeaponFactory.getWeapon( WeaponEnum.WETRIEDKNIFE );
            mClass = new Thief( mStats );
        }
Пример #5
0
        private void setRedMage()
        {
            /* start setRedMage */

            mStats = new int[Character.MAXSTATS];

            mStats[(int)StatEnum.AGILITY] = 15;
            mStats[(int)StatEnum.MAGIC] = 10;
            mStats[(int)StatEnum.STAMINA] = 3;
            mStats[(int)StatEnum.STRENGTH] = 13;

            mArmor = ArmorFactory.getInstance().getBasicArmorSet(ClassEnum.REDMAGE);
            mWeapon = WeaponFactory.getWeapon(WeaponEnum.WETIREDSWORD);
            mClass = new RedMage(mStats);
        }