Table of Contents

Class SphereBuilder

Namespace
RandomizerCore.Randomization
Assembly
RandomizerCore.dll

Class which manages stepping the randomizer: selecting sets of items which unlock new locations until all locations are reachable. Spheres record the result of each step.

public class SphereBuilder
Inheritance
SphereBuilder
Inherited Members

Constructors

SphereBuilder(RandomizationStage, ProgressionManager, TempState)

Creates a new SphereBuilder, using the ProgressionManager to monitor reachable locations.

public SphereBuilder(RandomizationStage stage, ProgressionManager pm, TempState tempState)

Parameters

stage RandomizationStage
pm ProgressionManager
tempState TempState

Fields

Placements

public List<RandoPlacement>[] Placements

Field Value

List<RandoPlacement>[]

Spheres

public List<Sphere[]> Spheres

Field Value

List<Sphere[]>

Methods

AddItemlessSphere()

Creates a sphere with the newest reachable locations and no items. Exits if the request was empty.

public void AddItemlessSphere()

Exceptions

InvalidOperationException

There are no reachable locations, and the request was nonempty.

AddNextSphere()

Steps the builder and creates a sphere with the forced items and unlocked locations.

public void AddNextSphere()

Advance()

Steps the SphereBuilder to completion, putting the results into the Placements list.

public void Advance()