|
|
發表於 2005-8-14 10:25:54
|
顯示全部樓層
Originally posted by doall at 2005-8-13 09:11 PM:
adm/obj/simul_efun.c 這個檔案是不是所有檔案都會包含進去?
不然master.c裡面用了許多函數並沒有先定義便直接使用。
還有能解釋一下call_other這個函數嗎?它的help檔我看不懂...
比如說
string creator_fi ...
call_other 就是 call object(object型態) 那個 function (function 名稱)
還有輸入參數
像
ob->set("xy", 1);
跟
call_other( ob, "xy", 1)
是一樣的
其實很少用到
通常會用到這個的情況,是因為 function 名稱不一定的時候
例如
ob 有 query_1 or query_2 or query_3
x = random(3)
沒辦法 ob->set_+"x"+(xxxx) 沒這種寫法
只能用 call_other( ob, "set_"+x, xxxxx)來解決
simul_efun.c 是 mudos 指定放 公定函式 的地方
大部份都是常用的函式...依 mud 需求各有不同 |
|