void Dragon::PrintResult(int nTime) { Warrior::PrintResult(nTime); cout << "It has a " << weapon.getWeaponName() << ","; cout << "and it's morale is "; cout << fixed << setprecision(2) << this->morale << endl; }
void Iceman::PrintResult(int nTime) { Warrior::PrintResult(nTime); cout << "It has a " << weapon.getWeaponName() << endl; }
void Ninjia::PrintResult(int nTime) { Warrior::PrintResult(nTime); cout << "It has a " << weapon1.getWeaponName() << ","; cout << "and a " << weapon2.getWeaponName() << endl; }