CONCEPT
	lfuns - local functions

DESCRIPTION
	A lfun is a LPC function within an object which is public and can
	be called by other objects. In OO terms, lfuns are "methods"
	which you can send "messages" to.

	Calling lfuns is done by using the efun call_other(), which
	takes as arguments the object in which the lfun is to be called,
	the name of the lfun to be called in the object, and additional
	and optional arguments.

	An example looks like this:

	call_other(drink, "short");

	This call may also be written as 

	drink->short();

	This means call_other(object, "function", args...) can also be
	written as object->function(args...). The second form is
	preferred as it is easier to read.

	Some lfuns have a special meaning for the LPC driver, because
	they are applied by the interpreter instead from an LPC object.
	To distinguish those, they are called ``applied lfuns''.

SEE ALSO
	efuns(LPC), efun(E), applied(A), master(M), call_other(E)

Help topics available:
LFUNS MORE_LFUNS query_info query_air reduce_hit_point
restore_spell_points save_me_from_death

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 109 since December 2019.
This file was last modified: June 2000.