[Package Index | Mudlib Index | Effect Index]

File /std/room/player_housing_outside.c

This is the standard inheritable for a player-owned house outside room, like for gardens and things.

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 have a lord register the house with the housing command if you wish the house to be available for sale or rent using the normal processes.

Written by Belle, Gototh, Ceres, Pinkfish

Example

inherit "/std/room/player_housing_outside";

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

  set_short("front room");
  set_base_desc("a small garden" );
  add_surface( "floor", "grass" );
  add_surface( "north wall", "red brick" );
  add_surface( "south wall", "red brick" );
  add_surface( "east wall", "red brick" );
  add_surface( "west wall", "red brick" );
  add_exit("south", PATH+"flat1", "door");
}

Inherits

This class inherits the following classes /std/room/inherit/player_housing.c and /std/room/outside.c

Includes

This class includes the following files /include/playtesters.h, /include/player_handler.h, /include/housing.h, /include/login_handler.h, /include/player.h and /include/dirs.h

Method index

Public Functions

These are functions that everyone can access.

.