-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.h
31 lines (30 loc) · 868 Bytes
/
map.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef MAP_H
#define MAP_H
#include <vector>
#include <iostream>
#include "room.h"
#include <random>
#include <string>
class Map{
friend std::ostream& operator<<(std::ostream&,const Map&);
private:
std::vector<Room*> areas;
int RoomNumber;
char* pixmap;
int x,y;
public:
Map(int, int, int, const std::string &);
~Map();
bool IsInBounds(const Coordinates&) const;
void addRandomRoom(std::string);
void drawRoom(const Room&);
void addPaths();
std::vector<Coordinates> pathfind(unsigned int, unsigned int) const;
std::vector<Coordinates> buildpath(Coordinates,Coordinates*) const;
char* getPixmapExcluding(unsigned int, unsigned int) const;
int getDimX() const;
int getDimY() const;
std::vector<Room*> getAreas() const;
};
std::ostream& operator<<(std::ostream&,const Map&);
#endif