public Armor(Globals.armorTypes armorType) { switch (armorType) { case Globals.armorTypes.exoArmor: Armor exoArmor = new Armor("Exo Armor", 1, 1); this.copyArmor(exoArmor); break; case Globals.armorTypes.superArmor: Armor superArmor = new Armor("Super Armor", 20, -20); this.copyArmor(superArmor); break; } }
public BattleCharacter(String name, int maxHP, int maxFP, int str, int def, int spd, characterClasses characterClass, specialMoves specialMove, Globals.weaponTypes weapon1, Globals.weaponTypes weapon2, Globals.armorTypes armor, string spriteFileName) { this.name = name; this.HP = maxHP; this.maxHP = maxHP; this.FP = maxFP; this.maxFP = maxFP; this.str = str; this.def = def; this.spd = spd; this.characterClass = characterClass; this.specialMove = specialMove; this.weapon1 = new Weapon(weapon1); this.weapon2 = new Weapon(weapon2); this.armor = new Armor(armor); this.spriteFileName = spriteFileName; exp = 0; lvl = 1; Bleeding = false; Stun = false; turnsLeftStunned = -1; statUp = 0; turnsLeftStatUp = 0; statUpType = "0"; }