
ES2 mudlib - FF extension v0.6c 函式說明書

程式: /adm/daemons/mob_progd.c

	本物件負責登記需要定時動作的 NPC, 每隔六十秒檢查一次這些 NPC
	是否要執行一組動作.
	所有登記的 NPC 物件, 都紀錄在 mob_table 變數中.

mixed query_mob_table()

	傳回 mob_table 變數的內容.

void my_set_heart_beat()

	設定自己的心跳為 60 秒. 設 heart_beat 會不會消耗較多的資源呢 ?
	有閒的自己改用 call_out 試試.

void setup_mob_prog( object ob )

	由 /std/char.c 的 setup() 呼叫, 讀入該 NPC 的 mob_program 
	變數, 加進 mob_table 變數表中.

void heart_beat()

	每次心跳週期到了, driver 會呼叫此函式一次. 此函式負責檢查時間
	是否到了, 並執行各 NPC 物件的動作.

	NPC 物件的範例請參考 /d/maniac/npc/post_officer.c

Spock of The Final Frontier	98.Sep.21.
