Door Class Reference

#include <Door.h>

Inherits MapSite.

Collaboration diagram for Door:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Door (class Room *=0, class Room *=0)
virtual ~Door ()
virtual void Enter ()
class RoomOtherSideFrom (class Room *)
virtual void Print (int indent=0)

Private Attributes

class Room_room1
class Room_room2
bool _isOpen


Detailed Description

Definition at line 12 of file Door.h.


Constructor & Destructor Documentation

Door::Door ( class Room room1 = 0,
class Room room2 = 0 
)

Definition at line 6 of file Door.cpp.

References _room1, and _room2.

Door::~Door (  )  [virtual]

Definition at line 12 of file Door.cpp.


Member Function Documentation

void Door::Enter (  )  [virtual]

Implements MapSite.

Definition at line 14 of file Door.cpp.

References _isOpen.

class Room * Door::OtherSideFrom ( class Room room  ) 

Definition at line 20 of file Door.cpp.

References _room1, and _room2.

void Door::Print ( int  indent = 0  )  [virtual]

Reimplemented from MapSite.

Definition at line 30 of file Door.cpp.

References _isOpen, _room1, _room2, Room::GetRoomNo(), and PrintIndent().

Here is the call graph for this function:


Member Data Documentation

bool Door::_isOpen [private]

Definition at line 26 of file Door.h.

Referenced by Enter(), and Print().

class Room* Door::_room1 [private]

Definition at line 24 of file Door.h.

Referenced by Door(), OtherSideFrom(), and Print().

class Room* Door::_room2 [private]

Definition at line 25 of file Door.h.

Referenced by Door(), OtherSideFrom(), and Print().


The documentation for this class was generated from the following files:

Generated on Sat Mar 21 17:10:26 2009 for Builder Design Pattern by  doxygen 1.5.8