|
Design Patterns
|
#include <room.h>
Public Member Functions | |
| Room (const int &room_number) | |
| Room (const Room &room) | |
| virtual Room * | Clone () const |
| virtual void | Enter () override |
| virtual bool | entered () const |
| MapSiteInterface * | GetSide (const Direction &) const |
| int | room_number () const |
| void | SetSide (const Direction &, MapSiteInterface *) |
Public Member Functions inherited from creational::commons::MapSiteInterface | |
| virtual | ~MapSiteInterface () |
Protected Attributes | |
| int | room_number_ |
|
explicit |
| creational::commons::Room::Room | ( | const Room & | room | ) |
|
virtual |
Reimplemented in creational::commons::EnchantedRoom, and creational::commons::RoomWithABomb.
|
overridevirtual |
Implements creational::commons::MapSiteInterface.
Reimplemented in creational::commons::TwistyTurnyPassage.
|
virtual |
Reimplemented in creational::commons::TwistyTurnyPassage.
| MapSiteInterface * creational::commons::Room::GetSide | ( | const Direction & | direction | ) | const |
| int creational::commons::Room::room_number | ( | ) | const |
| void creational::commons::Room::SetSide | ( | const Direction & | direction, |
| MapSiteInterface * | side | ||
| ) |
|
protected |