| 12
 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
 
 | #include <iostream>
#include <string>
 
class Guerrier
{
private:
	int hp;
	int sp;
	int xp;
	int level;
	int argent;
	std::string classe;
	std::string nom;
	std::string technique1;
	std::string technique2;
	std::string technique3;
	int force;
	int rapidite;
	int energie;
	int defense;
	Arme monArme;
public:
	Guerrier();
	int getForce(int &force);
	void recoveryHP(int &hp);
	void recoverySP(int &sp);
	void gagnerXp(int &xp);
	void changerLVL(int &xp);
	void reatsu(std::string &technique1);
	void reveille(std::string &technique2);
	void bankai(std::string &technique3);
	void seFaireFrapper(int &defense);
	bool vivant() const;
	void dommage();
};
 
class Arme
{
private:
	std::string nomArme;
	int forceArme;
	int poid;
 
public:
	void changerArme(std::string nouveauNom, int nouveauForce, int nouveauPoid,std::string &nomArme , int &forceArme, int &poid);
	Arme();
}; | 
Partager