Phantasmal MUD Lib for DGD

Phantasmal Site > Phantasmal API > API Listing > get_type

API Function: get_type

Summary:
get the subtype of mobile

Defined In LPC Object:
/usr/common/lib/mobile.c

Prototype:
string get_type(void)

Can Be Called By:
Anybody

Description:

Gets the mobile's subtype, which is useful for serializing it.

The default implementation of this function simply causes an error.

This function isn't access-protected. You should access-protect your version of this and all other inherited functions, including upgraded() and destructed().

Return Value:

The type as a string, or nil.

Errors:
By default, always causes an error. Varies by subtype of mobile.

See Also:
Mobile:to_unq_text