Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#pragma once
#include <vector>
#include <string>
#include "Player.h"
using namespace std;
class Map
{
public:
Map();
void load(string fileName, Player &player);
void print();
void movePlayer(char input, Player& player);
char getTile(int x, int y);
void setTile(int x, int y, char tile);
private:
vector <string> _mapData;
void processPlayerMove(Player& player, int targetX, int targetY);
};