public Weapon(Globals.weaponTypes weaponType) { switch (weaponType) { case Globals.weaponTypes.hand: Weapon none = new Weapon(); this.copyWeapon(none); break; case Globals.weaponTypes.Spirit: Weapon Spirit = new Weapon("Spirit", 5, -1, false, -1, -1, -1, true, false, false, false, false); this.copyWeapon(Spirit); break; case Globals.weaponTypes.homeforgedBlade: Weapon homeforgedBlade = new Weapon("Homeforged Blade", 4, 30, false, 30, -1, 300, true, false, true, false, true); this.copyWeapon(homeforgedBlade); break; case Globals.weaponTypes.kunais: Weapon kunais = new Weapon("Kunais", 4, 15, true, 10, 450, 225, true, false, true, false, true); this.copyWeapon(kunais); break; case Globals.weaponTypes.homeforgedPistol: Weapon homeforgedPistol = new Weapon("Homeforged Pistol", 1, 30, true, 30, 400, 200, false, true, true, false, true); this.copyWeapon(homeforgedPistol); break; case Globals.weaponTypes.nightStick: Weapon nightStick = new Weapon("Night Stick", 3, 30, false, 30, 500, 250, true, true, true, true, true); this.copyWeapon(nightStick); break; case Globals.weaponTypes.crossbow: Weapon crossbow = new Weapon("Crossbow", 2, 35, true, 35, 500, 250, false, false, false, true, true); this.copyWeapon(crossbow); break; case Globals.weaponTypes.barrinNightStick: Weapon barrinNightStick = new Weapon("Night Stick", 3, 30, false, 30, 500, 250, false, false, false, false, false); this.copyWeapon(barrinNightStick); break; case Globals.weaponTypes.ajaxPistol: Weapon ajaxPistol = new Weapon("Homeforged Pistol", 1, 30, true, 30, 400, 200, false, false, false, false, false); this.copyWeapon(ajaxPistol); break; } }
public BattleEnemy(String name, int maxHP, int str, int def, int spd, Globals.weaponTypes weapon1, Globals.weaponTypes weapon2, string spriteFileName) { this.name = name; this.HP = maxHP; this.maxHP = maxHP; this.str = str; this.def = def; this.spd = spd; this.weapon1 = new Weapon(weapon1); this.weapon2 = new Weapon(weapon2); this.spriteFileName = spriteFileName; Bleeding = false; Stun = false; turnsLeftStunned = 0; statUp = 0; turnsLeftStatUp = 0; statUpType = "0"; }
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"; }