Добавлены локации и перемещение по ним

This commit is contained in:
DeLiss
2026-06-11 11:37:19 +05:00
parent 1e7bac87d3
commit cba2274630
15 changed files with 506 additions and 57 deletions

View File

@@ -1,20 +1,24 @@
#pragma once
#include <string>
#include <vector>
#include "location.h"
class Player {
public:
std::string name = "Character Name";
int hp = 100;
int atk = 1;
int atk = 10;
int gold = 0;
int currentLocation = 1;
Point position;
int weaponId = 101;
std::vector<int> items;
Player() {};
Player(std::string _name);
void showStats();
};
Player() = default;
Player(std::string name);
#pragma once
void showStats() const;
};