[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/alias.c
Alias handler. This does all stuff like compling, expanding, and presenting
aliases.Written by Woom
Started August 22, 2006
Includes
This class includes the following files /include/alias.hMethod index
- alias_string(mixed *)
Turn the compiled alias array into a string.
- compile_alias(string, object)
This function takes an input string and compiles it into an alias.
- expand_alias(mixed *, string, string, object)
This method expands the alias from the input string thingy.
Public Functions
These are functions that everyone can access.
-
alias_string
string alias_string(mixed * al)
Turn the compiled alias array into a string.
- Parameters:
al - the alias array
- Returns:
the string value of the alias array
- See also:
compile_alias()
-
compile_alias
mixed * compile_alias(string str,
object player)
This function takes an input string and compiles it into an alias.
- Parameters:
str - The alias representation
- Returns:
The alias sequence
-
expand_alias
string * expand_alias(mixed * al,
string verb,
string args,
object player)
This method expands the alias from the input string thingy.
- Parameters:
al - The alias to expand
verb - The command they typed
args - the arguments to the alias
player - The player to expand for
- Returns:
The set of commands for the alias