-
Notifications
You must be signed in to change notification settings - Fork 0
/
Map.h
36 lines (30 loc) · 857 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
32
33
34
35
36
#pragma once
#include <string>
#include <vector>
#include "Room.h"
class ObjectTracker;
class Map
{
private:
int id;
std::string name;
std::vector<int> validEnemies;
std::vector<int> validLoot;
int boss;
Room rooms[4][4];
public:
Map(int _id, std::string _name);
void addValidEnemy(int _id) { validEnemies.push_back(_id); };
void addValidLoot(int _id) { validLoot.push_back(_id); };
void addBoss(int _id) { boss = _id; }
void fillRooms(ObjectTracker* _o);
int id_() { return id; };
std::string name_() { return name; };
Room* getRoomAt(int x, int y) { return &rooms[x][y]; };
void clearRoomAt(int x, int y) { rooms[x][y].setClear(); };
int boss_() { return boss; };
int roomsCleared_();
void printMap(int p_x, int p_y);
int* printMoveMenu(int p_x, int p_y);
Map instance() { return *this; };
};