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