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
|
#include <iostream>
#include <string>//char in stringhe
#include "classi.cpp"
#include "enemy.cpp"
using namespace std;
int main()
{
int Hp,Atk,Def,eHp,eAtk,eDef,D1,D2,Rng;
string Nome,Classe,eName;
char Scelta;
system("COLOR 0A");
cout<<"Gioco Rpg con solo testo"<<endl;
cout<<"Inserisci il nome del tuo personaggio:";
cin>>Nome;
cout<<"Scegli una classe:"<<endl;
cout<<"Guerriero: 60Hp,15Atk,13Def"<<endl;
cout<<"Rogue: 50Hp,12Atk,10Def"<<endl;
cout<<"Mago: 40Hp,18Atk,7Def"<<endl;
Classi://per default in classi.cpp
ClassiScelta(Hp,Atk,Def,Scelta,Classe);
cout<<Nome<<"|"<<Classe<<"|Hp"<<Hp<<"|Atk"<<Atk<<"|Def"<<Def<<endl;
EnemySpawn(eHp,eAtk,eDef,eName,D1,D2,Rng);
cout<<eName<<"|Hp"<<eHp<<"|Atk"<<eAtk<<"|Def"<<eDef<<endl;
system("PAUSE");
}
| |