All pastes #112085 Raw Edit

dan

public cpp v1 · immutable
·published 2006-08-02 17:53 UTC
rendered paste body
//Author: Daniel Gonik////Date: 7/20/06////File name: spaceship.h////Description: Header file for the Spaceship class//#include <string> #include "homeWork4.h"using std::string;class Spaceship{public:		Spaceship();	Spaceship(string, int, int, int, int);	/* Declare a set method for the pilot's name */	void setPilotName(string);	// Declare a get method for the pilot’s name//	string getPilotName();	//Declare a set method for max damage points//		void setMaxDamagePoints(int);	/* Declare a get method for the max damage points */	int getMaxDamagePoints();	/* Declare a set method for the current damage points */	void setCurrentDamagePoints(int);	/* Declare a get method for the current damage points */	int getCurrentDamagePoints();	//Declare a semethod for hull strength//	void setHullStrength(int);	//Declare a get method for the hull strength//	int getHullStrength();	//Declare a set mothod for the laser power//	void setLaserPower(int);	//Declare a get method for the laser power//	int getLaserPower();	//Declare statements//	bool IsDead(); /* returns true if damage points is greater than or equal to max damage points */ 	void FixDamage(int); /* Subtracts amt from Damage Points Don’t let it go negative */ 	void UpgradeHull(int); /* Increase Hull Strength */ 	void UpgradeLaser(int); /* Increases Laser Power */ 	void GiveDamage(int); /* should add amount of damage points to DP */ 	bool IsHit(int); /* returns true if roll is higher than 10 + Hull Strength */ 	void PrintStats(); /* prints pilot name, damage points, max damage points, laser power and hull strength */	void AddSpaceItem(string);	void ShowSpaceItem();	void AddPoints(int);	int getPoints();private:	string PilotName;	int MaxDamagePoints;	int CurrentDamagePoints;	int HullStrength;	int LaserPower;	int Point;	static const unsigned int max_num_item = 4;	SpaceItem m_Space[max_num_item];	unsigned int m_item;	};