Table of Contents

Class StagePlacementStrategy

Namespace
RandomizerCore.Randomization
Assembly
RandomizerCore.dll

Base class for stage-level placement strategy. Manages the placement of each group.

public class StagePlacementStrategy
Inheritance
StagePlacementStrategy
Inherited Members

Methods

Clone()

Creates a copy of the strategy that can be used for another stage.

public virtual StagePlacementStrategy Clone()

Returns

StagePlacementStrategy

PlaceItems(RandomizationStage, Sphere[], TempState)

Places the items of the stage according to the spheres. It is expected that the output array contains a full list of placements for each RandomizationGroup of the stage in sequence.

public virtual List<RandoPlacement>[] PlaceItems(RandomizationStage stage, Sphere[] spheres, TempState placementState)

Parameters

stage RandomizationStage

The current RandomizationStage.

spheres Sphere[]

The list of spheres of the randomizer. Each sphere array has a sphere for each RandomizationGroup, containing the items which must be placed at that depth, and the locations unlocked as a result.

placementState TempState

The current state. Temporary indicates that the placement will be eventually overwritten. Permanent indicates that it is final. Otherwise, the placement may or may not be final.

Returns

List<RandoPlacement>[]

Reset()

Called before rerandomization, or if the randomizer resets for subsequent attempts.

public virtual void Reset()