Добавлены локации и перемещение по ним
This commit is contained in:
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user