[Package Index | Mudlib Index | Effect Index]
It handles the internals for player housing. When creating a house you should inherit "/std/room/player_housing" rather than this inheritable.
Written by Belle, Gototh, Ceres
.
int add_allowed(string pname)This function adds a name to the allow list of this room.
void add_surface(string short, string covering)Add a surface (wall, floor etc.) and give the basic covering the surface has prior to decoration.
void debug_log(string fmt, mixed args ...)This class is used to cache short names for exits so we don't go loading rooms all over the place.
int decorate_surface(string short, string covering)Modify a surface (wall, floor etc.) and give it a new covering.
int do_allow(object player, string location)
int is_allowed(string name)This method tells us if the person is allowed to use this room.
int ownership_change(string old_owner, string new_owner)This function informs the house that its owner has changed, it does not actually change the owner since that is done in the handler.
string * query_allowed()This method returns the current list of people allowed to modify this room.
string query_base_desc()Query the fixed part of the description.
string query_owner()This method returns the current owner of the house.
string query_quit_handler()This method returns the room that people will be placed in if they logout while in this room and not allowed to control this room.
int remove_allowed(string pname)This function removes a name from the allow list of this room.
void set_base_desc(string desc)Set the fixed part of the long description.
string set_owner(string who)This method locally sets the owner of the house.
void set_quit_handler(string filename)Set the room into which people should be placed if they quit in this room but are not allowed to control this room.
int test_occupier(string name)This function determines if a given individual can be considered to be the occupier of this house. Normally this means the person currently renting or owning this house. For shared ownership houses simply mask this function and do whatever you have to. :)
void event_enter_checks(object ob)This method is used to setup things when someone enters the room.
class decoration { string short; string covering; }
class exit_data { string long; string key; int difficulty; int closed; int locked; int autolock; int transparent; mixed trap_data; }
class exit_shorts { string one_short; string a_short; }