Skip to content

AgeSortPlayerDataTrimAlg

Samuel Gomes edited this page Jul 4, 2024 · 7 revisions

AgeSortPlayerDataTrimAlg

This class is a child of PlayerDataTrimAlg, which trims a list of states based on the age of the elements. The older states are discarded.

Constructor and Attributes

Constructor

+ AgeSortPlayerDataTrimAlg(maxNumModelElements: int): void
Name: expected type Default value Description
maxNumModelElements: int - The maximum number of states in the trimmed list.

Methods

- creationTimeSort(elem: PlayerState)

Description

(auxiliary) Comparer to sort a list by age.

Overrides trimmedList(pastModelIncs: PlayerState[]): PlayerState[].

Clone this wiki locally