#include <Door.hpp>
Inheritance diagram for Door
Public Methods | |
Door ( RoomPtr = NULLPTR, RoomPtr = NULLPTR ) | |
Default constructor can take one or two rooms. More... | |
Door ( DoorCref ) | |
Copy constructor. | |
virtual | ~Door ( void ) |
Virtual Destructor. | |
DoorRef | operator= ( DoorCref ) throw (corelinux::Assertion ) |
Assignment operator. | |
bool | operator== ( DoorCref aRef ) const |
Equality operator. | |
bool | isOpen ( void ) const |
Is door open - true is yes. | |
bool | isClosed ( void ) const |
Is door closed - true is yes. | |
RoomPtr | getFirstRoom ( void ) const |
Get the first room. | |
RoomPtr | getSecondRoom ( void ) const |
Get the second room. | |
RoomPtr | otherSideFrom ( RoomPtr ) const throw (corelinux::Assertion ) |
Get the opposite room from the argument. | |
void | setOpen ( void ) |
Opens door if closed. | |
void | setClosed ( void ) |
Closes door if open. | |
void | setFirstRoom ( RoomPtr ) throw (corelinux::Assertion ) |
Magical Room Change. | |
void | setSecondRoom ( RoomPtr ) throw (corelinux::Assertion ) |
Magical Room Change. | |
virtual void | enter ( void ) |
The one operation "enter", the meaning depends on the derivation, or what it is you are entering. |
|
Default constructor can take one or two rooms.
|