NAME
	inherit - inherit the functions and variables of another object

SYNOPSIS
	inherit "filename";

DESCRIPTION
	his is not a function in the normal matter, but merely a way to make
	all functions and variables from an object available to your object
	without copying it entirely.

	The filename counts from the root and not, like the include statement,
	from the current directory. If you wish to make a function with the
	same name as one in the inherited object you can still access the
	inherited one using two colons in front of the function name:

	reset(arg)
	{
	  ::reset(arg);

	which will call reset(arg) in the inherited object.

	If you inherit more than one file you reach the functions in them by
	prepending the filename before '::' :

	inherit "/std/simple_monster";
	inherit "/players/test/file";

	reset(arg)
	{
	  simple_monster::reset(arg);
	  etc.

	which will call reset(arg) in /std/simple_monster.

SEE ALSO 
	/doc/LPC/inheritance

Help topics available:
_destruct _isclone _lock _next_clone _query_action
add_action all_inventory call_other call_out call_out_info
clone_object command creator deep_inventory destruct
disable_commands enable_commands environment exec file_name
find_call_out find_living find_object first_inventory function_exists
inherit inherit_list input_to interactive living
move_object next_inventory present previous_object query_verb
remove_call_out restore_object save_object set_heart_beat set_light
set_living_name shadow tell_object tell_room this_object
this_player transfer

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 141 since November 2019.
This file was last modified: June 2000.