北大侠客行MUD论坛

 找回密码
 注册
搜索
热搜: 新手 wiki 升级
查看: 5031|回复: 1

请问efuns的帮助文件中的小括号()之含义

[复制链接]
发表于 2011-7-12 13:40:35 | 显示全部楼层 |阅读模式
最近学lpc,看到efuns帮助文件中这样写:
     query_verb(3), remove_action(3), init(4)
请问(3)(4)指的是什么?谢谢!



---------------------------------------------------
     aaaadddddddd____aaaaccccttttiiiioooonnnn((((3333))))          MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))           aaaadddddddd____aaaaccccttttiiiioooonnnn((((3333))))

     NNNNAAAAMMMMEEEE
          add_action() - bind a command verb to a local function

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          void add_action( string | function fun, string | string *
          cmd, int flag );

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          Set up a local function to be called when user input
          matches the command . Functions called by a player
          command will get the arguments as a string. It must then
          return 0 if it was the wrong command, otherwise 1.

          If the second argument is an array, then all the commands in
          the array will call the second function.  It is possible to
          find out which command called the function with
          query_verb().

          If it was the wrong command, the parser will continue
          searching for another command, until one returns true or
          give error message to player.

          Usually add_action() is called only from an init() routine.
          The object that defines commands must be present to the
          player, either being the player, being carried by the
          player, being the room around the player, or being an object
          in the same room as the player.

          If argument is 1, then only the leading characters of
          the command has to match the verb and the entire verb
          is returned by query_verb().  If argument is 2, then
          again, only the leading characters must match, but
          query_verb() will only return the characters following
          .

     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          query_verb(3), remove_action(3), init(4)

     Page 1                                          (printed 3/16/95)

北大侠客行MUD,中国最好的MUD
北大侠客行Mud(pkuxkx.net),最好的中文Mud游戏!
发表于 2011-7-12 14:01:12 | 显示全部楼层
efun的类别。无关紧要的信息。这个应该是从linux的man继承的传统。
北大侠客行Mud(pkuxkx.net),最好的中文Mud游戏!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|北大侠客行MUD ( 京ICP备16065414号-1 )

GMT+8, 2024-3-29 11:05 PM , Processed in 0.011791 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表