game is running! player can be created.

This commit is contained in:
DeLiss
2026-06-04 04:08:55 +05:00
commit d81111f001
10 changed files with 346 additions and 0 deletions

17
player.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "player.h"
#include <iostream>
Player::Player(std::string _name)
{
this->name = _name;
hp = 100;
atk = 10;
gold = 0;
}
void Player::showStats() {
std::cout << "\n === " << this->name << "'s STATS ===";
std::cout << "\nHP : " << this->hp;
std::cout << "\nATK : " << this->atk;
std::cout << "\nGOLD : " << this->gold;
}