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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
|
class HuF
{
public:
//Locals:
int epdamt,ypdamb,epdamb,ypdamt;
int yhp,ymp,ypatk,ypdef,yratk,yrdef,ymatk,ymdef,ylvl,ydb,yacc,ycr,yas;
int ehp,emp,epatk,epdef,eratk,erdef,ematk,emdef,elvl,edb,eacc,ecr,eas;
double constant;
double HumanFG[10][12];
int HumanFS[12];
HuF()
{
const static double default_HumanFG[10][12] ={
//HP MP PA MA RA PD MD RD DB ACC CR AS
{.0701,.05997,.105,.092,.095,.061,.0590,.0490,.0571,.05107,.04512,.0177}, //F 0
{.0741,.06021,.110,.094,.096,.075,.0670,.0540,.0602,.05137,.04551,.0175}, //SS 1
{.0821,.06532,.125,.095,.097,.094,.0820,.0730,.0751,.05219,.04621,.0218}, //P 2
{.0831,.06604,.120,.082,.093,.101,.0935,.0805,.0761,.05155,.04561,.0182}, //W 3
{.0732,.06010,.124,.092,.095,.064,.0620,.0520,.0582,.05313,.05132,.0193}, //DW 4
{.0781,.07204,.132,.093,.095,.072,.0680,.0550,.0601,.05352,.05324,.0224}, //GU 5
{.0775,.06891,.141,.093,.095,.068,.0661,.0545,.0631,.05521,.05435,.0241}, //GL 6
{.0751,.06013,.127,.093,.098,.067,.0611,.0621,.0573,.05120,.04822,.0179}, //2H 7
{.0781,.06061,.131,.094,.098,.071,.0632,.0630,.0577,.05133,.05102,.0187}, //D 8
{.0773,.06121,.137,.095,.099,.067,.0622,.0613,.0575,.05127,.05210,.0192} //R 9
};
const static int default_HumanFS[12] = {137,58,6,4,5,72,45,66,19,25,12,2};
for(int i=0;i<10;++i)
{
for(int j=0;j<12;++j)
HumanFG[i][j] = default_HumanFG[i][j];
}
for(int i=0;i<12;++i)
HumanFS[i] = default_HumanFS[i];
}
void HuFS()
{
int *player[] = {&yhp,&ymp,&ypatk,&ymatk,&yratk,&ypdef,&ymdef,&yrdef,&ydb,&yacc,&ycr,&yas};
std::cout << "what is your level?: ";
std::cin >> ylvl;
for(int i=0;i<12;++i)
{
constant = (1+HumanFG[0][i]);
*player[i] = ((double)pow(constant, ylvl)) * HumanFS[i];
cout<<*player[i]<<'\n';//Printing
}
}
void EHuF()
{
int *enemy[] = {&ehp,&emp,&epatk,&ematk,&eratk,&epdef,&emdef,&erdef,&edb,&eacc,&ecr,&eas};
std::cout << "what is your enemies level?: ";
std::cin >> elvl;
for(int i=0;i<12;++i)
{
constant = (1+HumanFG[0][i]);
*enemy[i] = ((double)pow(constant, elvl)) * HumanFS[i];
cout<<*enemy[i]<<'\n';//Printing
}
}
void FightStart()
{
ypdamt = ypatk;
ypdamb = ypdef;
epdamt = epatk;
epdamb = epdef;
int ypdamf = ypdamt/ypdamb;
int epdamf = epdamt/epdamb;
cout << ypatk<<' '<<ypdamb<<' '<<ypdamf << endl;//???????PRINTING
cout << epatk<<' '<<epdamb<<' '<<epdamf << endl;//???????PRINTING
}
};
|