StepIdentifierTracker

class StepIdentifierTracker constructor(initialTable: MutableList<String> = mutableListOf()) : StepTracker

Provides a simple implementation of a StepTracker that uses StepIdentifier to track if a Step has been seen. Optionally the table can be provided. This provides a simple mechanism for tracking steps and may not be suitable for games with greater than 100,000 steps as the lookup will become more costly and serialization less suitable.

Constructors

Link copied to clipboard
constructor(initialTable: MutableList<String> = mutableListOf())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Get the underlying table.

Link copied to clipboard

Get the version of this StepIdentifierTracker.

Functions

Link copied to clipboard
open override fun hasBeenSeen(step: Step): Boolean

Get if a step has been seen.

Link copied to clipboard
open override fun persist(path: String): SaveResult

Persist to a path.

Link copied to clipboard
open override fun registerStepSeen(step: Step)

Register that a step has been seen.

Link copied to clipboard
open override fun restore(path: String): LoadResult<StepTracker>

Restore from a path.