L5A/Room.cpp

23 lines
362 B
C++
Raw Permalink Normal View History

2024-11-06 17:02:03 -07:00
#include "Room.h"
#include <iostream>
using namespace std;
ARoom::ARoom() {
cout << "ARoom() called" << endl;
mRoomName = "Vacant Room";
}
ARoom::~ARoom() {
cout << "~ARoom() called" << endl;
}
string ARoom::getRoomName() const {
return mRoomName;
}
bool ARoom::escapeTheRoom() {
cout << "There's no escape" << endl;
return false;
}