Roguelike
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
Room Class Reference

Public Member Functions

 Room ()
 
 Room (const Room &)
 
 Room (IntPoint _tl, IntPoint _br)
 
 Room (int _tl_x, int _tl_y, int _height, int _width)
 

Public Attributes

IntPoint tl
 
IntPoint br
 
int height
 
int width
 

Private Member Functions

void print () const
 

Friends

ostream & operator<< (ostream &, const Room &R)
 

Constructor & Destructor Documentation

Room::Room ( )

Empty constructor.

Room::Room ( const Room r)

Copy constructor.

Room::Room ( IntPoint  _tl,
IntPoint  _br 
)
Parameters
_tlthe top-left corner of the room relative to its parent dungeon
_brthe bottom-right corner of the room relative to its parent dungeon

Creates a new room.

Member Function Documentation

void Room::print ( ) const
private

Prints a description of the points in this room.

Friends And Related Function Documentation

ostream& operator<< ( ostream &  out,
const Room R 
)
friend
Parameters
Rthe room to output Overloaded output stream operator to easily print a room.

Member Data Documentation

IntPoint Room::br

The bottom left corner of the room relative to its parent dungeon.

int Room::height

The height of the room.

IntPoint Room::tl

The top left corner of the room relative to its parent dungeon.

int Room::width

The width of the room.


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