Class MapleQuestAction
java.lang.Object
server.quest.MapleQuestAction
- All Implemented Interfaces:
Serializable
任務動作的資料模型,代表接取或完成任務時對角色施加的單一獎勵或副作用。
動作種類由 MapleQuestActionType 枚舉決定,包含:道具給予/移除(item)、
經驗值(exp)、楓幣(money)、技能習得(skill)、
特性經驗(charismaEXP… 等)、SP 配點(sp)、
人氣(pop)以及後續任務狀態(quest)等。
由 MapleQuest.loadQuest(ResultSet, MemRS.Grouped, MemRS.Grouped, MemRS.Grouped, MemRS.Grouped, MemRS.Grouped, MemRS.Grouped) 從 SQL 批次行(MemRS)中初始化,
再由 MapleQuest.start(MapleCharacter, int) 或 MapleQuest.complete(MapleCharacter, int) 呼叫 run 方法
對目標 MapleCharacter 執行對應效果;applicableJobs 限制部分道具僅發放給特定職業。
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMapleQuestAction(MapleQuestActionType type, MemRS rse, MapleQuest quest, MemRS.Grouped skillRows, MemRS.Grouped questRows, MemRS.Grouped itemRows) Creates a new instance of MapleQuestAction -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckEnd(MapleCharacter c, Integer extSelection) getItems()getType()final booleanRestoreLostItem(MapleCharacter c, int itemid) voidrunEnd(MapleCharacter c, Integer extSelection) voidrunStart(MapleCharacter c, Integer extSelection) toString()
-
Constructor Details
-
MapleQuestAction
public MapleQuestAction(MapleQuestActionType type, MemRS rse, MapleQuest quest, MemRS.Grouped skillRows, MemRS.Grouped questRows, MemRS.Grouped itemRows) throws SQLException Creates a new instance of MapleQuestAction- Throws:
SQLException
-
-
Method Details
-
RestoreLostItem
-
runStart
-
checkEnd
-
runEnd
-
getType
-
toString
-
getSkills
-
getItems
-