set_author

来自「C实现的MUD,对大家基本入门网络游戏很有帮助!」· 代码 · 共 38 行

TXT
38
字号
     sssseeeetttt____aaaauuuutttthhhhoooorrrr((((3333))))          MMMMuuuuddddOOOOSSSS ((((5555 SSSSeeeepppp 1111999999994444))))           sssseeeetttt____aaaauuuutttthhhhoooorrrr((((3333))))     NNNNAAAAMMMMEEEE          set_author - set the author associated with an object.     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS          void set_author( string author );     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN          Every object has both an author and a domain associated with          it for the purposes of tracking statistics for authors and          domains.  Domains may only be set in the master object          function domain_file(4), however authors are different.          They can be initialized to some default value by          author_file(4) in the master object, but can also be changed          using the set_author efun.          set_author changes the author of the object that it is          called within.  That author will get credit for all future          actions of that object that affect mudlib statistics.  Note          that this may cause some weird numbers to occur in the          categories "objects" and "array_size", since the object may          have initialized arrays or been created under the original          author's credit, but it could be destructed or free the          arrays that it's using under another author, thus reducing          numbers from a count that didn't have those same numbers          added previously.  To rememdy this, only use set_author          within create(4), and use it before any arrays are allocated          if at all possible.     SSSSEEEEEEEE AAAALLLLSSSSOOOO          author_file(4), domain_file(4), author_stats(3),          set_author(3), domain_stats(3)     Page 1                                          (printed 3/16/95)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?