Class MapleBuffStatValueHolder
java.lang.Object
client.MapleBuffStatValueHolder
單一 buff 效果的執行期狀態值容器。
記錄一個作用中 buff 所需的所有執行期資訊:觸發效果來源(effect,
即 MapleStatEffect)、生效起始時間戳(startTime)、
實際生效時長(localDuration,毫秒)、效果數值(value)、
施加者角色 ID(cid)以及排程到期回呼(schedule,
ScheduledFuture)。
由 MapleCharacter 的 buff 狀態映射以 MapleBuffStat 為鍵儲存;
到期時由排程執行緒移除 buff 並送出客戶端封包。
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintlongint -
Constructor Summary
ConstructorsConstructorDescriptionMapleBuffStatValueHolder(MapleStatEffect effect, long startTime, ScheduledFuture<?> schedule, int value, int localDuration, int cid) -
Method Summary
-
Field Details
-
effect
-
startTime
public long startTime -
value
public int value -
localDuration
public int localDuration -
cid
public int cid -
schedule
-
-
Constructor Details
-
MapleBuffStatValueHolder
public MapleBuffStatValueHolder(MapleStatEffect effect, long startTime, ScheduledFuture<?> schedule, int value, int localDuration, int cid)
-