-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroom.cpp
More file actions
31 lines (25 loc) · 727 Bytes
/
room.cpp
File metadata and controls
31 lines (25 loc) · 727 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
#include "room.h"
#include <iostream>
namespace da_game {
/**
* Constructs an empty room with no exits.
*/
Room::Room() {
}
/**
* Constructs a new room with the specified exits.
*/
Room::Room(Exit * east, Exit * west, Exit * north, Exit * south)
: Inside(east, west, north, south) {
}
/*
* If we give the objects an id directly from this vector there might be a
* problem when we try to pick up something that has already been picked up
* by someone else.
*/
std::string Room::description() const {
std::string description = Environment::description();
description += "This is a room!";
return description;
}
}