#include //for the object cout #include #include #include #include "zclass.h" using namespace std; contender::contender() //this is a constructor with no args : health {1}, power {1} { } void contender::bossh(int n) { for (int i {0}; i < n; ++i){ bossh(); } } void contender::bossh() { health = 100; power = 100; } void contender::buff(int n) //to change user struct { for (int i {0}; i < n; ++i){ buff(); } } void contender::buff() //the cheatcode { power = 9999; paws(1500); cout << "Radio: You can do that?\n"; paws(1500); cout << "*confused zombie noises...*""\n"; paws(2000); } void contender::lose(int n) { for (int i {0}; i < n; ++i){ lose(); } } void contender::lose(){ health -= 1; if (health <= 0){ paws(1500); cout << "BLAM!\n"; } }