Добавлен инвентарь, в сундуках могут содержаться предметы.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user