#include <Room.h>
Inherits MapSite.
Public Member Functions | |
Room (int roomNo) | |
virtual | ~Room () |
class MapSite * | GetSide (Direction) const |
int | GetRoomNo () const |
void | SetSide (Direction, class MapSite *) |
virtual void | Enter () |
virtual void | Print (int indent=0) |
Private Attributes | |
class ObjectArray * | _sides |
int | _roomNumber |
Definition at line 13 of file Room.h.
Room::Room | ( | int | roomNo | ) |
Definition at line 6 of file Room.cpp.
References _roomNumber, and _sides.
Referenced by MazeFactory::MakeRoom().
int Room::GetRoomNo | ( | ) | const |
Definition at line 21 of file Room.cpp.
References _roomNumber.
Referenced by Maze::AddRoom(), and Door::Print().
void Room::Print | ( | int | indent = 0 |
) | [virtual] |
Reimplemented from MapSite.
Definition at line 33 of file Room.cpp.
References _roomNumber, _sides, ObjectArray::Print(), and PrintIndent().
Definition at line 25 of file Room.cpp.
References _sides, and ObjectArray::PutAt().
Referenced by MazeGame::CreateMaze().
int Room::_roomNumber [private] |
class ObjectArray* Room::_sides [private] |