commands(3)           LPC 系統函數           commands(3)

名稱
     commands() - 傳回 this_object() 可以用的動作的資訊

語法
     mixed *commands( void );

描述
     傳回 this_object() 一個陣列, 每個元素是一個四個項目的陣列.
	 1.  命令本身, 也就是 add_action() 的第二個參數所定義的.
	 2.  旗標, add_action() 第三個參數定義的, 預設是 0.
         3.  定義該命令的物件.
         4.  命令所對應到的函數.
     注意, commands() 是 this_object() 可以用的動作的資訊
	 也就是說, 你無法用 this_player()->commands();
	 想要 this_player()->commands() 的話, 需要在 /std/body.c
	 之類的, 玩家的身體定義檔中增加此命令. 
	 TMI-2 在 /std/body.c 有定義 this_player()->user_commands().
         該函數如下:

		mixed *user_commands() { return commands(); }

請參考
     add_action(3), enable_commands(3), disable_commands(3)

MudOS                Last change: 5 Sep 1994                    1

