Lpc:Apply

来自MudWiki

Apply是在driver中实现的在特定条件下会自动执行的特殊方法,和对象有直接关系,类似其它面像对象编程中的接口,方法的具体行为需要开发者自己实现。

所有的Apply方法从相关性可以分为以下几类:

主控对象(Master)相关

author_filecompile_objectconnectcrashcreator_filedomain_fileepilogerror_handlerflagget_bb_uidget_include_pathget_mud_statsget_root_uidget_save_file_namelog_errormake_path_absoluteobject_namepreloadprivs_fileretrieve_ed_setupsave_ed_setupslow_shutdownvalid_bindvalid_databasevalid_hidevalid_linkvalid_objectvalid_overridevalid_readvalid_seteuidvalid_shadowvalid_socketvalid_writeview_errors*

互动对象(Interactive)相关

catch_tellgmcpgmcp_enablelogonmxp_enablemxp_tagnet_deadprocess_inputreceive_edreceive_environreceive_messagereceive_snooptelnet_suboptionterminal_colour_replaceterminal_typewindow_sizewrite_promptzmp_command

所有对象(Object)相关

clean_upcreatedestructorevent_*heart_beatidinitinventory_accessibleinventory_visibleis_livinglivings_are_remotemove_or_destructresetvirtual_start

语法分析(parsing)

can_*direct_*do_*indirect_*parse_command_adjectiv_id_listparse_command_all_wordparse_command_id_listparse_command_plural_id_listparse_command_prepos_listparse_command_usersparse_get_environmentparse_get_first_inventoryparse_get_next_inventoryparser_error_message