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

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,5 +1,7 @@
#include "player.h"
#pragma once
#include "player.h"
#include "location.h"
#include <vector>
class Game {
public:
@@ -7,11 +9,20 @@ public:
private:
bool isRunning = true;
Player player;
std::vector<Location> locations;
void showMainMenu();
void processCommand();
void render();
};
#pragma once
void loadLocations();
Location* getCurrentLocation();
void render();
void processCommand();
void movePlayer(int dx, int dy);
void handleTile(char tile);
bool solveRiddle(Location& location);
};