Class AutoQuest
java.lang.Object
com.csse3200.game.missions.Mission
com.csse3200.game.missions.quests.Quest
com.csse3200.game.missions.quests.AutoQuest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the description specified in the constructor.Gets theAutoQuest's progress.Returns the description as ingetDescription()method.booleanAlways returns true as there is no dynamic progress.voidreadProgress(com.badlogic.gdx.utils.JsonValue progress) Does nothing asAutoQuests have no savable progressvoidregisterMission(EventHandler missionManagerEvents) On registering this mission theRewardis collected.protected voidDoes nothing asAutoQuests have no state to reset.Methods inherited from class com.csse3200.game.missions.quests.Quest
collectReward, isExpired, isMandatory, isRewardCollected, read, resetExpiry, updateExpiry, writeMethods inherited from class com.csse3200.game.missions.Mission
getName, notifyUpdate
-
Constructor Details
-
Method Details
-
registerMission
On registering this mission theRewardis collected.- Specified by:
registerMissionin classMission- Parameters:
missionManagerEvents- A reference to theEventHandleron theMissionManager, with which relevant events should be listened to.
-
isCompleted
public boolean isCompleted()Always returns true as there is no dynamic progress.- Specified by:
isCompletedin classMission- Returns:
- - true
-
getDescription
Returns the description specified in the constructor.- Specified by:
getDescriptionin classMission- Returns:
- - description of the
AutoQuest
-
getShortDescription
Returns the description as ingetDescription()method.- Specified by:
getShortDescriptionin classMission- Returns:
- - description of the
AutoQuest
-
readProgress
public void readProgress(com.badlogic.gdx.utils.JsonValue progress) Does nothing asAutoQuests have no savable progress- Specified by:
readProgressin classMission- Parameters:
progress- TheJsonValuerepresenting the progress of theMissionas determined by the value returned ingetProgress().
-
getProgress
Gets theAutoQuest's progress.- Specified by:
getProgressin classMission- Returns:
- - always 0 as there is no progress in an
AutoQuest
-
resetState
protected void resetState()Does nothing asAutoQuests have no state to reset.- Specified by:
resetStatein classQuest
-