id()
determines whether a given string describes the
object. This is used to recognize which object a player is talking
about (e.g. in a command take red hat
).
In practice you will never need to inherit this, because the object class has this ability.
#include <ability.h> inherit NAME;
string query_name()
string query_capname()
query_name()
instead.
void set_name(string n)
n
.
string query_alias()
void set_alias(string *a)
a
.
Any previous aliases will be forgotten. The aliases will be
converted to lower case letters.
void add_alias(string a)
a
to the list of aliases.
void delete_alias(string a)
a
from the list of aliases.
int id(string s)
1
if string s
is either
the name of the object or an alias. All comparisions are
case insensitive. Return 0
otherwise.