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.boolean
Always returns true as there is no dynamic progress.void
readProgress
(com.badlogic.gdx.utils.JsonValue progress) Does nothing asAutoQuest
s have no savable progressvoid
registerMission
(EventHandler missionManagerEvents) On registering this mission theReward
is collected.protected void
Does nothing asAutoQuest
s have no state to reset.Methods inherited from class com.csse3200.game.missions.quests.Quest
collectReward, isExpired, isMandatory, isRewardCollected, read, resetExpiry, updateExpiry, write
Methods inherited from class com.csse3200.game.missions.Mission
getName, notifyUpdate
-
Constructor Details
-
Method Details
-
registerMission
On registering this mission theReward
is collected.- Specified by:
registerMission
in classMission
- Parameters:
missionManagerEvents
- A reference to theEventHandler
on theMissionManager
, with which relevant events should be listened to.
-
isCompleted
public boolean isCompleted()Always returns true as there is no dynamic progress.- Specified by:
isCompleted
in classMission
- Returns:
- - true
-
getDescription
Returns the description specified in the constructor.- Specified by:
getDescription
in classMission
- Returns:
- - description of the
AutoQuest
-
getShortDescription
Returns the description as ingetDescription()
method.- Specified by:
getShortDescription
in classMission
- Returns:
- - description of the
AutoQuest
-
readProgress
public void readProgress(com.badlogic.gdx.utils.JsonValue progress) Does nothing asAutoQuest
s have no savable progress- Specified by:
readProgress
in classMission
- Parameters:
progress
- TheJsonValue
representing the progress of theMission
as determined by the value returned ingetProgress()
.
-
getProgress
Gets theAutoQuest
's progress.- Specified by:
getProgress
in classMission
- Returns:
- - always 0 as there is no progress in an
AutoQuest
-
resetState
protected void resetState()Does nothing asAutoQuest
s have no state to reset.- Specified by:
resetState
in classQuest
-