MagicTargetListAchievement

An achievement base class that tracks a list of targets.

For an example, see org.magiclib.achievements.examples.ExampleTargetListAchievement.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class Data

Functions

Link copied to clipboard
open fun addTarget(targetKey: String, displayName: String)
Adds a target with the given key and display name.
Link copied to clipboard
open fun advanceAfterInterval(amount: Float)
Link copied to clipboard
open fun advanceInCombat(amount: Float, events: List<InputEventAPI>, isSimulation: Boolean)
Link copied to clipboard
open fun createTooltip(tooltipMakerAPI: TooltipMakerAPI, isExpanded: Boolean, width: Float)
Link copied to clipboard
open fun getMaxProgress(): Float
Link copied to clipboard
open fun getProgress(): Float
Link copied to clipboard
Link copied to clipboard
open fun hasTooltip(): Boolean
Link copied to clipboard
open fun setTargetComplete(targetKey: String)
Sets the target with the given key to complete.
open fun setTargetComplete(targetKey: String, isComplete: Boolean)
Sets the completion status of the target with the given key.
Link copied to clipboard
open fun setTargets(targets: Map<String, String>)
Replaces the current target list with the given one, WITHOUT affecting the completion status of the targets.
Link copied to clipboard
Returns true if progress and max progress are the same, or, if either of them are null, if all targets are complete.