gasilpromotion.blogg.se

Dieroll 21 12
Dieroll 21 12






dieroll 21 12

Its most useful method is roll(), although it does have methods such as min(), max(), isFlat(), and distribution() for examining its expected results.ĭieRoll instances are not constructed directly use DieRoll::fromString().ĭieRolls use reference counting, so this is fast.ĭefinition at line 293 of file DieRoll.cpp.Ī PluginDieRollParser takes a QString, parses the entire thing if it can, and returns a SolidPlastic object. This tests two things, and prints its results on cout.Ī DieRoll is a fixed collection of dice, such as 3d6 or 1d20. TestRolls (const DieRoll &d, int rolls, bool showSubs) Removes the given PluginDieRollParser from the list of plugged-in parsers.

dieroll 21 12

RemoveDieRollParser ( PluginDieRollParser dp) Games which have their own concept of dice & rolled results can plug in DieRollParsers. This creates DieRoll instances from strings such as "d6", "3d6", "3d6+3" and "3d6*3", and "d8+d12".ĪddDieRollParser ( PluginDieRollParser dp) Returns the DieRoll in a format which should be readable by DieRoll::fromString() (as well as by people). Returns a list of WeightedValues giving the DieRoll's expected distribution, or an empty list for DieRolls which do not support it. Returns true if the distribution of the DieRoll's results will be flat rather than a bell curve. Loads the DieRoll from the given Deserializer.

dieroll 21 12

Saves the DieRoll to the given Serializer. Fun::DieRoll class Reference Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Membersįun::DieRoll Class ReferenceA DieRoll is a fixed collection of dice, such as 3d6 or 1d20.








Dieroll 21 12