Class BuffClassFetcher
java.lang.Object
server.buffs.BuffClassFetcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleangetHandleMethod(MapleStatEffect eff, int skillid) 依 skill id 找出負責的 buff 類別並把其 buff 效果套用到eff。
-
Field Details
-
buffClasses
-
-
Constructor Details
-
BuffClassFetcher
public BuffClassFetcher()
-
-
Method Details
-
getHandleMethod
依 skill id 找出負責的 buff 類別並把其 buff 效果套用到eff。沿用重構前的派發語意:依宣告順序找第一個
containsJob(jobid)為真的處理器; 若該處理器不含此 skill(!containsSkill)則繼續往後找下一個;命中後呼叫handleBuff並回傳true。handleBuff若拋出例外(理論上不會) 則吞掉並繼續往後找,與重構前一致。- Parameters:
eff- 要被填入 buff 效果的狀態效果物件skillid- 觸發此效果的 skill id- Returns:
- 是否有處理器負責並處理了此 skill
-