forked from SirDifferential/instrument_controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroommanager.hpp
More file actions
31 lines (28 loc) · 756 Bytes
/
roommanager.hpp
File metadata and controls
31 lines (28 loc) · 756 Bytes
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 _ROOMMANAGER_HPP_
#define _ROOMMANAGER_HPP_
#include "room.hpp"
#include <map>
#include <vector>
#include <memory>
class RoomManager
{
private:
int id;
std::vector<std::shared_ptr<Room> > roomVector;
std::vector<std::shared_ptr<Room> >::iterator roomIter;
int activeRoom;
std::shared_ptr<Room> arenaRoom; // The current, playable arena
public:
RoomManager();
~RoomManager();
bool init();
std::shared_ptr<Room> getRoom(std::string n);
int getRoomIndex(std::string);
void addRoom(std::shared_ptr<Room> r);
void nextRoom();
void changeRoom(std::string name);
std::shared_ptr<Room> giveCurrentRoom();
std::shared_ptr<Room> giveArenaRoom() { return arenaRoom; }
void work();
};
#endif