#include #include "spaceship.h"//includes the spaceship.h file// using std::cin; using std::cout; using std::endl; #include//allows us to use time for the roller function// #include "roller.h"//includes roller, allowing us to have random numbers// string ItemNames[] = {"Special Attack", "Fix More Damage", "Upgrade Hull", "Upgrade Laser", "Point Status"};//creates an array which stores the menu options// int DisplayMessage() { int an; for(int j = 0; j < 4; j++) cout<>an; return an;//stores and returns the number inputed by the user// } string OptNames[] = {"Attack", "Fix Damage", "Scan enemies ship", "Status", "Use Item"};//creates an array which stores the menu options// int DoMenu()//displays the menu options along with numbers// { int ans; for(int i = 0; i < 4; i++) cout<>ans; return ans;//stores and returns the number inputed by the user// } int main() { string PName;//Remembers important numbers and pilots name// int ant = 3;//Upgrade hull strength// int amnt = 3;//Upgrade laser power// int MaxD = 30;//Maximum damage// int LP = 3;//Laser power// int HS = 3;//Hull strength// const int Num_Enemies = 3;//Makes the number of enemies 3// Spaceship enemies[Num_Enemies];//creates enemy object// Spaceship spaceship1;//create spaceship object// Spaceship spaceitem; cout<< "Please enter your name: "<>PName;//Pilot Name// spaceship1.setPilotName(PName); //sets values above into the member functions belonging to the spaceship1 object. I do this by using the variables defined above as parameters.// spaceship1.setMaxDamagePoints(MaxD); spaceship1.setLaserPower(LP); spaceship1.setHullStrength(HS); enemies[0].setPilotName("The Terminator");//sets values and names for the enemies// enemies[0].setHullStrength(2); enemies[0].setMaxDamagePoints(20); enemies[0].setLaserPower(2); enemies[1].setPilotName("Shrek"); enemies[1].setHullStrength(3); enemies[1].setLaserPower(3); enemies[1].setMaxDamagePoints(30); enemies[2].setPilotName("Darth Vaider"); enemies[2].setHullStrength(9); enemies[2].setMaxDamagePoints(40); enemies[2].setLaserPower(9); srand(static_cast(time(NULL)));//returns a value of the time_t type and srand() takes a parameter of unsigned int type// Roller oneToTwenty(1, 20);//Create objects and make scope for random numbers// Roller Fix(1, (spaceship1.getHullStrength() + 2));//create object and scope for random numbers// int ro =Fix.GetRoll();//Declare ro and set it equal to random numbers// int Roll = oneToTwenty.GetRoll();//Declare Roll and set it equal to random numbers// for (int currEn=0; currEn<=2; currEn++)//rotates through the enemies and allows the user to battle each// { if( (currEn > 0) && (!(spaceship1.IsDead())))//if the user defeats an enemy the following apears on the screen// { point = point + 5;//If the user kills the enemy, the user is awarded 5 points// cout<<"Nice to see you again Captain "<