Добавлен инвентарь, в сундуках могут содержаться предметы.

This commit is contained in:
DeLiss
2026-06-11 12:05:36 +05:00
parent cba2274630
commit 5d4940f754
12 changed files with 312 additions and 8 deletions

View File

@@ -1,7 +1,9 @@
#pragma once
#include "player.h"
#include "location.h"
#include "item.h"
#include <vector>
#include <string>
class Game {
public:
@@ -12,10 +14,15 @@ private:
Player player;
std::vector<Location> locations;
std::vector<Item> itemDatabase;
void showMainMenu();
void loadItems();
void loadLocations();
ItemType parseItemType(const std::string& type);
Location* getCurrentLocation();
void render();
@@ -24,5 +31,7 @@ private:
void movePlayer(int dx, int dy);
void handleTile(char tile);
void openChest(Location& location);
bool solveRiddle(Location& location);
};