[Package Index | Mudlib Index | Effect Index]

File /secure/simul_efun/find_match.c

The find_match simul_efun.

Written by Pinkfish

Inherits

This class inherits the following classes /secure/simul_efun/obj_parser.c

Includes

This class includes the following files /include/obj_parser.h and /include/playtesters.h

Method index

Public Functions

These are functions that everyone can access.

filter_in_me_or_environment
object * filter_in_me_or_environment(object * obs,
object player)

This method returns the array of objects that are only inside the player in question, or in their environment. It excludes any items in other peoples inventorys.

Parameters:
obs - the objects to filer
player - the player to check

Returns:
the filtered objects


find_match
varargs mixed find_match(string str,
mixed ob,
object looker)

This method is now obsolete. Please use match_objects_for_existence or match_objects_in_environments or match_object_in_array

See also:
match_objects_in_environments(), match_object_in_array() and match_objects_for_existence()


is_in_me_or_environment
int is_in_me_or_environment(object thing,
object person)

This method checks to see if the specified object is in the player or the environment. If it has no environment it is considered to be here.

Parameters:
ob - the object to test
player - the player to check against

Returns:
1 if it is, 0 if not


living_carrying
object living_carrying(object ob)

This method returns the living object carrying the given object.

Parameters:
ob - the object to check

Returns:
the living object whose inventory the object is in (or 0 if the object is 0 or if it is not in a living object's inventory).


player_carrying
object player_carrying(object ob)

This method returns the player carrying the given object.

Parameters:
ob - the object to check

Returns:
the player whose inventory the object is in (or 0 if the object is 0 or if it is not in a player's inventory).