<commit_before>#ifndef PLAYER_H
#define PLAYER_H

#include "Entity.h"
#include "Enemy.h"

class Player : public Entity {
    // Contains the functions needed to construct the player's character.
    public:
        void SaveGame();

        void SetPlayerData();
        int Attack();
	void UseItem();
        void AddToInventory(std::vector<int>);

        void DisplayHUD(Enemy*);
        void ReplenishHealth();

        void AddExperience(int);
        void LoseExperience(int);

        void AddCoins(int);
        void LoseCoins(int);

        void DisplayInventory();
        int GetCoins();

    private:
        int GenericAttack();
        int RiskAttack();
        int BowAndArrow();

        void UseWhetstone();
        void UsePotion();
        int UseBomb();
        void DeductDamage(int&);
        int ReturnBowDamage();

        int Flee();

        void printInventoryItem(string, int, string);
        void printXPBar(string, int, string, string, int, string);
        void printDivider(char, char, string);


	int player_type;
        int level;
	int experience;
        int whetstones;
        int arrows;
        int potions;
        int bombs;
        int weaponstrength;
        int coins;
};

#endif // PLAYER_H<commit_msg>Update Player.h<commit_after>#ifndef PLAYER_H
#define PLAYER_H

#include "Entity.h"
#include "Enemy.h"

class Player : public Entity {
    // Contains the functions needed to construct the player's character.
    public:
        void SaveGame();

        void SetPlayerData();
        int Attack();
	void UseItem();
        void AddToInventory(std::vector<int>);

        void DisplayHUD(Enemy*);
        void ReplenishHealth();

        void AddExperience(int);
        void LoseExperience(int);

        void AddCoins(int);
        void LoseCoins(int);

        void DisplayInventory();
        int GetCoins();

    private:
        int GenericAttack();
        int RiskAttack();
        int BowAndArrow();

        void UseWhetstone();
        void UsePotion();
        int UseBomb();
        void DeductDamage(int&);
        int ReturnBowDamage();

        int Flee();

        void printInventoryItem(std::string, int, std::string);
        void printXPBar(string, int, std::string, std::string, int, std::string);
        void printDivider(char, char, std::string);


	int player_type;
        int level;
	int experience;
        int whetstones;
        int arrows;
        int potions;
        int bombs;
        int weaponstrength;
        int coins;
};

#endif // PLAYER_H
{'fraction_non_alphanumeric': 0.10395256916996047, 'fraction_numerical': 0.0, 'mean_word_length': 2.232439335887612, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4293325', 'n_tokens_mistral': 776, 'n_tokens_neox': 731, 'n_words': 204}