MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / WeightedOptions

Method WeightedOptions

src/Savegame/WeightedOptions.h:38–38  ·  view source on GitHub ↗

Create an empty set.

Source from the content-addressed store, hash-verified

36public:
37 /// Create an empty set.
38 WeightedOptions() : _totalWeight(0) { /* Empty by design. */ }
39 /// Select from among the items.
40 const std::string choose() const;
41 /// Select the top item.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected