static void MTA (int n) { if (n < 0) _Exit (81); Charlie (n - 1); }
int main(){ srand(time(NULL)); //Create four creatures that will be used for the demo CyberDemon Jenkins(20); Balrog Charlie(20); Elf Finle(20); Human Jaek(20); cout << "Created CyberDemon Jenkins, STR 20, HEALTH 100" << endl; cout << "Created Balrog Charlie, STR 20, HEALTH 100" << endl; cout << "Created Elf Finle, STR 20, HEALTH 100" << endl; cout << "Created Human Jaek, STR 20, HEALTH 100" << endl << endl; //Outputs the tests for the user cout << "Jenkins' Species: " << Jenkins.getSpecies() << endl; for(int i = 0; i < 2; ++i) cout << "Jenkins attacks: " << Jenkins.getDamage() << endl; cout << endl << "Charlie's species: " << Charlie.getSpecies() << endl; for(int i = 0; i < 2; ++i) cout << "Charlie attacks: " << Charlie.getDamage() << endl; cout << endl << "Finle's species: " << Finle.getSpecies() << endl; for(int i = 0; i < 2; ++i) cout << "Finle attacks: " << Finle.getDamage() << endl; cout << endl << "Jaek's species: " << Jaek.getSpecies() << endl; for(int i = 0; i < 2; ++i) cout << "Jaek attacks: " << Jaek.getDamage() << endl; return 0; }