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
|
class Mage
{
public:
//constructor for my mage class, sets integers to a default state
Mage();
//name of the player
string name;
//temporary stats
int current_health, current_mana, strength_plus, strength_minus, agility_plus, agility_minus, intelligence_plus, intelligence_minus, hit_plus, hit_minus, crit_plus, crit_minus, defence_plus, defence_minus, evasion_plus, evasion_minus;
// calls the function which adds xp to the player, then checks whether or not the player has leveled, resetting xp and updating stats
int addXP(int add);
//the main function which holds all the player can do on his turn, attack, items, abilities
void player_turn();
// the function called within the main option to check player stats
void player_stats();
// the function called after each level up and during fights, updating the players base stats and any tempory stat affects
void U_base_stats();
//Function called which updates the current health of the player
void U_health(int heal, int dmg);
//the function called to look at player equipment, printing whats equipped and giving the options to unequip
void player_equipment();
protected:
//base stats handled by the job algortihm
int health, mana, strength, intelligence, agility, hit, crit, defence, evasion;
//level of character and curent xp stored
int lvl, xp, maxXP;
};
|