Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

Door Class Reference

Doors join two rooms. More...

#include <Door.hpp>

Inheritance diagram for Door

Inheritance graph
[legend]
Collaboration diagram for Door:

Collaboration graph
[legend]
List of all members.

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.


Detailed Description

Doors join two rooms.


Constructor & Destructor Documentation

Door::Door ( RoomPtr aFirstRoom = NULLPTR,
RoomPtr aSecondRoom = NULLPTR )
 

Default constructor can take one or two rooms.

Parameters:
Room   pointer Room 1
Room   pointer Room 2


The documentation for this class was generated from the following files:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium