[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /std/room/player_housing.c</h2>
This is the standard inheritable for a player-owned house room.

All you need to do is inherit this file  and call a couple of setup
functions and off you go.

In addition you will need to register the house with the
housing command if you wish the house to be available for sale or rent
using the normal processes. Make sure you have permission and have
read the help on the housing command before you do this.
<p>Written by Belle, Gototh, Ceres
<h3>Example</h3>
<pre>inherit "/std/room/player_housing";

void setup() {
  set_light(100);
  set_theft_handler(HOSPITAL);
  set_save_file("/save/player_housing/am/short/flat1");

  set_short("front room");
  set_base_desc("a small and cosy front room" );
  add_surface( "floor", "finished pine board" );
  add_surface( "ceiling", "plain plaster" );
  add_surface( "north wall", "plain plaster" );
  add_surface( "south wall", "plain plaster" );
  add_surface( "east wall", "plain plaster" );
  add_surface( "west wall", "plain plaster" );
  add_exit("out", PATH+"courtyard", "door");
  add_exit("north", PATH+"flat1bed", "door");
}

In the room outside the house you also need to add the following line to
make sure the doors from the street to the house get setup correctly (ie.
know if the user left the door locked or not and what kind of lock/trap
is in use in the door):
(PATH+"flat1")->setup_doors();
</pre>
<h2>Inherits</h2>
This class inherits the following classes <a href="std.room.inherit.player_housing.c.shtml">/std/room/inherit/player_housing.c</a> and <a href="std.room.basic_room.c.shtml">/std/room/basic_room.c</a><h2>Includes</h2>
This class includes the following files <a href="include.housing.h.shtml">/include/housing.h</a>, <a href="include.login_handler.h.shtml">/include/login_handler.h</a>, <a href="include.dirs.h.shtml">/include/dirs.h</a> and <a href="include.player_handler.h.shtml">/include/player_handler.h</a><h2>Method index</h2>
<dl><ul>
<li><a href="#query_address">query_address</a>()<br/>
This method returns the address of the player house.
</ul><h2>Public Functions</h2>
These are functions that everyone can access.<p>
.<ul><a name="query_address">
query_address</a><pre>
string query_address()
</pre></br>
This method returns the address of the player house.
<br/><ul>
<li><b>Returns:</b>
<br/>the address of this house

</dl>


[an error occurred while processing this directive]

