#ifndef BABBLEMUD_ROOM_H
#define BABBLEMUD_ROOM_H

#include <list>

#include "object.h"

// a room (vnum of room is in the room map)
class Room : public TopThing
  {
  public:
 
  // default ctor
  Room () {}
  
  // helper functions to save a bit of typing
  ObjectList & exits ()     { return items_ ["exits"]; }      // exits
  ObjectList & contents ()  { return items_ ["contents"]; }   // what is in the room
  ObjectList & stock ()     { return items_ ["stock"]; }      // for shops, what they sell
  
  };  // end of class tRoom

// we will use a map of rooms
typedef std::map <int, Room> RoomMap;
typedef RoomMap::iterator RoomMapIterator;

Room & FindRoom (const int & vnum);

#endif // BABBLEMUD_ROOM_H

