跳到主要内容

Class Roulette

Properties

betCount

public int betCount { get; }

totalPoints

Total points (weight).

public float totalPoints { get; protected set; }

Constructors

Roulette(int capacity)

public Roulette(int capacity)

Roulette(IEnumerable<KeyValuePair<T, float>> betPairs)

public Roulette(IEnumerable<KeyValuePair<T, float>> betPairs)

Roulette(Roulette<T> otherRoulette)

protected Roulette(Roulette<T> otherRoulette)

Methods

Get()

Take a bet T.

public T Get()

Clear()

public void Clear()

AddBet(T bet, float points)

Add a bet T.

public void AddBet(T bet, float points)

AddBet(KeyValuePair<T, float> betPair)

public void AddBet(KeyValuePair<T, float> betPair)

RemoveBet(T bet)

public bool RemoveBet(T bet)

RemoveBetAt(int index)

public void RemoveBetAt(int index)