Turn¶
Qualified name: | Ouxsoft\LuckByDice\Turn |
---|---|
Implements: | TurnInterface |
-
class
Turn
¶ -
public
__construct
(Notation $notation, Cup $cup, Luck $luck[, string $expression])¶ Turn
constructor.Parameters: Returns: Turn::setByString()
-
public
getExtraBonus
() → int¶ Get extra bonuses that could not be absorbed by dice. This could be used for determining critical, etc. in game engines, etc.
Returns: int –
-
public
getNotation
() → string¶ Get the dice notation for the entire cup
Returns: string –
-
public
getTotal
() → int¶ Gets the Cups total which contains the outcome of all Collections of
Dice
Returns: int –
-
public
roll
() → int¶ Roll each dice group, update luck, and return outcome with luck modifier applied
Returns: int – total
-
public