Class GenericNumericDie
java.lang.Object
de.kaiserpfalzedv.rpg.core.dice.bag.GenericNumericDie
- All Implemented Interfaces:
Die
GenericNumericDie -- Implements the die rolling for numeric die from 1 to
max.- Since:
- 2020-08-12
- Author:
- rlichti <rlichti@kaiserpfalz-edv.de>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from interface de.kaiserpfalzedv.rpg.core.dice.Die
getLookupTable
-
Field Details
-
max
public final int maxThe number of sides of the die.
-
-
Constructor Details
-
GenericNumericDie
public GenericNumericDie(int max)
-
-
Method Details
-
roll
Description copied from interface:Diea single die roll. -
roll
Description copied from interface:Diethe result of multiple dice rolls. -
isNumericDie
public boolean isNumericDie()- Specified by:
isNumericDiein interfaceDie- Returns:
- TRUE, if the result can be parsed as integer (and therefore calculations can be done)
-
getDieType
- Specified by:
getDieTypein interfaceDie- Returns:
- The name of the die.
-
equals
-
hashCode
public final int hashCode() -
toString
-