1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#include<iostream>
#include<cstdlib>
#include<ctime>
#include<string>
using namespace std;
#ifndef GAME_H_
#define GAME_H_
class game
{
public :
game();
string start();
int hero(string name,string weapon,int ap,int dp,int hp,int l);
void enemy(string name,string weapon,int ap,int dp,int hp,int l);
int lvl (int score);
private:
string name;
string weapon[10];
string pweapon;
string eweapon;
int score;
int ap[8]={10,14,18,20,24,26,27,29};
int *pap;
int *eap;
int dp[10];
int *pdp;
int *edp;
int hp[10];
int *php;
int *ehp;
int l;
};
#endif /* GAME_H_ */
|