28 lines
456 B
C++
28 lines
456 B
C++
#pragma once
|
|
#include "player.h"
|
|
#include "location.h"
|
|
#include <vector>
|
|
|
|
class Game {
|
|
public:
|
|
void run();
|
|
|
|
private:
|
|
bool isRunning = true;
|
|
|
|
Player player;
|
|
std::vector<Location> locations;
|
|
|
|
void showMainMenu();
|
|
|
|
void loadLocations();
|
|
Location* getCurrentLocation();
|
|
|
|
void render();
|
|
void processCommand();
|
|
|
|
void movePlayer(int dx, int dy);
|
|
void handleTile(char tile);
|
|
|
|
bool solveRiddle(Location& location);
|
|
}; |