Android Open Source - rpg-droid Die Type

From Project

Back to project page rpg-droid.


The source code is released under:

Apache License

If you think the Android project rpg-droid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.thing.rpg_droid.Utils;
//from  w w w .ja va 2 s .c  o m
 * Created by jon on 12/08/14.
public enum DieType
    D4 (1,4),
    D6 (1,6),
    D8 (1,8),
    D10 (1,10),
    D12 (1,12),
    D20 (1,20),
    D100 (1,100),
    Percentile (0,99);

    private int mMin;
    private int mMax;

    private DieType(int pMin, int pMax)
        mMin = pMin;
        mMax = pMax;

    public int getMin()
        return mMin;

    public int getMax()
        return mMax;

Java Source Code List