Package server.buffs
package server.buffs
Buff(增益)套用的分派層:依角色職業與 skill id 挑選對應 buff 類別並套用其狀態效果。
核心為抽象基底 AbstractBuffClass(各 buff 類別宣告其負責的 skill id 陣列、
覆寫 containsJob 判斷職業歸屬、並以 handleBuff 把效果寫入傳入的
MapleStatEffect)與分派器 BuffClassFetcher(啟動時一次性建立全部
buff 處理器實例並快取;getHandleMethod 依 skill id 推得 jobid,循宣告順序找出第一個
負責的處理器並套用其 buff)。
實際的職業 buff 類別依職業系分組於子套件 server.buffs.buffclasses(冒險家/
皇家騎士團/英雄/抵抗者/GM)。效果最終以 MapleBuffStat 與
MonsterStatus 表示,套用至角色的狀態效果物件。
-
ClassesClassDescriptionThese classes have two major purposes. 1) These classes will serve as a reference to buffs. 2) These classes will hopefully provide a structured way to add new buffs.Characterization tests for the per-job buff classes (
handleBuff) and theBuffClassFetcherdispatch entry point.