Table of Contents

Class CombinedItemSelector

Namespace
RandomizerCore.Randomization
Assembly
RandomizerCore.dll

Selector which manages multiple GroupItemSelectors, with the goal of proposing lowest priority items from available RandomizationGroups.

public class CombinedItemSelector
Inheritance
CombinedItemSelector
Inherited Members

Constructors

CombinedItemSelector(RandomizationGroup[])

public CombinedItemSelector(RandomizationGroup[] groups)

Parameters

groups RandomizationGroup[]

Properties

Finished

public bool Finished { get; }

Property Value

bool

Methods

AcceptLast()

public void AcceptLast()

CollectDiscardedItems(out List<IRandoItem>[])

public void CollectDiscardedItems(out List<IRandoItem>[] discardedItems)

Parameters

discardedItems List<IRandoItem>[]

Finish(out List<IRandoItem>[])

Outputs all items which have not yet been accepted.

public void Finish(out List<IRandoItem>[] newItems)

Parameters

newItems List<IRandoItem>[]

FinishAccepting(out List<IRandoItem>[])

Outputs list of accepted items. Restores all rejected items and starts new acccepted item list.

public void FinishAccepting(out List<IRandoItem>[] newItems)

Parameters

newItems List<IRandoItem>[]

Exceptions

InvalidOperationException

There are unhandled proposed items.

GetAcceptedItems()

public IEnumerable<IRandoItem> GetAcceptedItems()

Returns

IEnumerable<IRandoItem>

GetProposedItems()

public IEnumerable<IRandoItem> GetProposedItems()

Returns

IEnumerable<IRandoItem>

GetTestItems()

Enumerates all proposed or accepted items, except for the current proposed item.

public IEnumerable<IRandoItem> GetTestItems()

Returns

IEnumerable<IRandoItem>

RejectAllRemaining()

public void RejectAllRemaining()

RejectCurrentAndUnacceptAll()

public void RejectCurrentAndUnacceptAll()

RejectLast()

public void RejectLast()

TryProposeNext(out IRandoItem)

public bool TryProposeNext(out IRandoItem item)

Parameters

item IRandoItem

Returns

bool

TryRecallLast(out IRandoItem)

public bool TryRecallLast(out IRandoItem item)

Parameters

item IRandoItem

Returns

bool

TryRecallLast(out IRandoItem, out bool)

public bool TryRecallLast(out IRandoItem item, out bool coupled)

Parameters

item IRandoItem
coupled bool

Returns

bool

UpdateCaps(Sphere[])

public void UpdateCaps(Sphere[] last)

Parameters

last Sphere[]