public PlayerCharacter( Armor[] armor, string name, int[] stats, Weapon weapon, LevelTract pclass ) : base(armor, name, stats, weapon, pclass) { /* start constructor */ mExperience = 0; mLevel = 1; mUpgraded = false; mClass = pclass; mClass.LevelUp(1); }
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); }
private void setBlackMage() { /* start setBlackMage */ mStats = new int[Character.MAXSTATS]; mStats[(int)StatEnum.AGILITY] = 1; mStats[(int)StatEnum.MAGIC] = 30; mStats[(int)StatEnum.STAMINA] = 10; mStats[(int)StatEnum.STRENGTH] = 1; mArmor = ArmorFactory.getInstance().getBasicArmorSet(ClassEnum.BLACKMAGE); mWeapon = WeaponFactory.getWeapon(WeaponEnum.WETRIEDSTAFF); mClass = new BlackMage(mStats); }
private void setWarrior() { /* start setWarrior */ mStats = new int[Character.MAXSTATS]; mStats[(int)StatEnum.AGILITY] = 15; mStats[(int)StatEnum.MAGIC] = 1; mStats[(int)StatEnum.STAMINA] = 50; mStats[(int)StatEnum.STRENGTH] = 30; mArmor = ArmorFactory.getInstance().getBasicArmorSet(ClassEnum.WARRIOR); mWeapon = WeaponFactory.getWeapon(WeaponEnum.WETIREDSWORD); mClass = new Warrior(mStats); }
private void setTheif() { /* start setTheif */ mStats = new int[Character.MAXSTATS]; mStats[(int)StatEnum.AGILITY] = 30; mStats[(int)StatEnum.MAGIC] = 1; mStats[(int)StatEnum.STAMINA] = 30; mStats[(int)StatEnum.STRENGTH] = 15; mArmor = ArmorFactory.getInstance().getBasicArmorSet(ClassEnum.THEIF); ; mWeapon = WeaponFactory.getWeapon( WeaponEnum.WETRIEDKNIFE ); mClass = new Theif( mStats ); }
private void setRedMage() { /* start setRedMage */ mStats = new int[Character.MAXSTATS]; mStats[(int)StatEnum.AGILITY] = 15; mStats[(int)StatEnum.MAGIC] = 10; mStats[(int)StatEnum.STAMINA] = 25; mStats[(int)StatEnum.STRENGTH] = 10; mArmor = ArmorFactory.getInstance().getBasicArmorSet(ClassEnum.REDMAGE); mWeapon = WeaponFactory.getWeapon(WeaponEnum.WETIREDSWORD); mClass = new RedMage(mStats); }