.-
add_material
void add_material(mixed material)
-
This method adds a material to the list of current materials.
- Parameters:
- material - the material to add
-
clean_up
int clean_up(int inherited)
-
long
string long(string word,
int dark)
-
The description of an object when someone looks at it. This handles
the extra code for messages, colour and material.
- Parameters:
- word - the word it was matched on
- dark - is it dark from the player's perspecitive
- Returns:
- the long description
-
query_cloned_by
string query_cloned_by()
-
Who cloned the object. Used for security reasoin to trace who have
been cloning up objects for players.
- Returns:
- the person who cloned the object
-
query_colour
string query_colour()
-
The colour of the object.
- Returns:
- the colour of the objecy
-
query_material
string query_material()
-
The material of the object.
- Returns:
- the name of the material
-
query_materials
string * query_materials()
-
This returns all of the materials of the object.
- Returns:
- all the materials
-
query_objective
string query_objective()
-
The objective of the object.
- Returns:
- always returns "it"
-
query_possessive
string query_possessive()
-
The possessive of the object.
- Returns:
- always returns "its"
-
query_pronoun
string query_pronoun()
-
The pronoun of the object.
- Returns:
- always returns "it"
-
query_quality
int query_quality()
-
This method returns the quality of the object. The quality is used
in the crafts system, amongst other things.
-
replace_long_dollars
string replace_long_dollars(object player,
string text)
-
This method replaces any colours of materials in the given string
with the appropriate ccolours or materials for this object.
- Parameters:
- player - the player attempting to check the colour/material.
- text - the text to replace
- Returns:
- a new string with the dollar identities expanded.
-
set_colour
void set_colour(string word)
-
Sets the colour of the object.
- Parameters:
- word - the colour to make the object
-
set_material
void set_material(mixed word)
-
Sets the material of the object, this adds this material to the
front of the material list.
- Parameters:
- word - the material to set it to
-
set_name
void set_name(string word)
-
Gives the object a name. Sets the name to the word and makes it the
short description and attempts to create the pural short description
from it.
- Parameters:
- name - the name to use
-
set_player
void set_player(object thing)
-
Sets the player associated with the object. This is used during the
autoload sequence.
- Parameters:
- thing - the player object we belong to
- See also:
- /global/auto_load.c
-
set_quality
void set_quality(int quality)
-
This method sets the quality of the object. All objects are by
default 'normal' quality.
- Parameters:
- quality - the quality of the object