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

Room Class Reference

Room is a concrete subclass of MapSite that defines a key relationship between components in the maze. More...

#include <Room.hpp>

Inheritance diagram for Room::

MapSite List of all members.

Public Methods

 Room (void)
 Default constructor.

 Room (RoomNumberCref aRoomNumber)
 Default with RoomNumber.

 Room (RoomCref) throw ( corelinux::Assertion )
 Copy constructor.

virtual ~Room (void)
 Virtual destructor.

RoomRef operator= (RoomCref aRef) throw ( corelinux::Assertion )
 Assignment operator.

bool operator== (RoomCref aRef) const
 Equality operator returns true if instances are the same.

RoomNumberCref getRoomNumber (void) const
 Gets the room number.

MapSitePtr getSide (Direction) const
 Retrieve the MapSite object given a direction.

void setRoomNumber (RoomNumberCref aRef)
 Sets the room number.

void setSide (Direction, MapSitePtr)
 Sets a object for the given direction side.

virtual void enter (void)
 The one operation "enter", the meaning depends on the derivation, or what it is you are entering.


Detailed Description

Room is a concrete subclass of MapSite that defines a key relationship between components in the maze.

It also contains a identifier for rooms in the maze RoomNumber. As rooms go, this one has four walls only.


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